Map Wrapping?

(Paul Robbins) #1

Hi, Sorry if this is an obvious question, but:

If I wanted to develop a board game, which was hexagonal shaped say 6 hexes per edge filled with hexagons. and wanted players to move pieces around this board in straight lines but any direction and then wrap around the board i.e. if they moved off an edge is it possible with your script to identify the hexes in range on the opposite side of the board??

(Leslie Young) #2

You could take the row and column values of the current tile position and set either the column, or row to 0, to get the position on the other side of a row or a column.