
https://www.redblobgames.com/grids/hexagons/
I have this beautiful hexagonal pattern and I need to somehow implement it in java. I already have a Class "Tile" representing one hexagon and a class "Vector" for the coordinates of each Tile. Each Tile Object has its own vector.
For now I just want to add all the tiles to a list. But to do that I need to create all 37 of them. This is the point where I'm stuck right now. I could of course create all by hand, but not only would that be tedious and prone to error but also not very elegant.
Can anyone of you give me a clue on what I could do? :)