(01-26-2021, 03:56 AM)cambolbro Wrote: Hi,Thanks! But the directions are not the problem, I think. All the dots marking legal moves are correct. The issue is that nothing happens when I make a move in the player.
Maybe try the following directions: N, S, WNW, WSW, ENE, ESE.
Regards,
Cameron
The directions you suggest are correct if I rotate the board, but if that fixes things, there is definitively a bug here. I tried using (note) to see what value the integer function I wrote returns, but since the player is not making a move, (note) is useless.
Here is the function that, if I replace it with an integer, everything is fine:
Code:
(-
(min
(count Sites
in:(sites Direction
from:(last From)
#1
)
)
(count Sites
in:(sites Direction
from:(last From)
#2
)
)
)
(min
(count Sites
in:(sites Direction
from:(last To)
#1
)
)
(count Sites
in:(sites Direction
from:(last To)
#2
)
)
)
)