Open mlutze opened 2 years ago
Maybe, by having a nice neightbours
function on Board
. This can return OutOfBounds
or the wrapped position. The consequence of going to outOfBounds is decided by the engine.
This way AI's should use the neighbour function, but if they use absolute coordinates directly then they are must decide on this logic themselves. (I suppose the Strategy
type will receive a set of rules in some form, along with the seed in the future?).
So I vote to remove the border and then facilitate easy board exploration to avoid having to check bounds elsewhere.
from https://github.com/mlutze/flixball/pull/97
Options: