11-29-2020, 06:25 PM
(This post was last modified: 11-30-2020, 12:53 AM by dale walton.)
LOS not working for corner board positions in this sample.
I don't know why, but seems to work for the other positions.
(The code is to allow hexagons to be placed if there are the same number of each color at the nearest distance along a line of site.)
Please run it with showing allowed moves and place a piece in one of the corners.
Edit: It also is not working along the edges of an order 6 square grid.
I haven't tried for diagonal cases, but you should check them as well.
I don't know why, but seems to work for the other positions.
(The code is to allow hexagons to be placed if there are the same number of each color at the nearest distance along a line of site.)
Please run it with showing allowed moves and place a piece in one of the corners.
Edit: It also is not working along the edges of an order 6 square grid.
I haven't tried for diagonal cases, but you should check them as well.