08-07-2020, 08:23 AM
How is move to the nearest occupied space done? Step / variable length Hop over occupied sites to the first Empty...
I tried
(move Slide
(between ifnot (is In (between) (sites Empty)) ))
(to ifis Empty atto))
)
But this also allowed moves to the occupied intermediate positions.
I tried
(move Hop
(between
(range 0 9)
ifnot (is In (between) (sites Empty)) )
)
(to ifis Empty atto))
)
But this didn't work at all (maybe the board was too small?).
Leaving the range out only allowed single hops.
I tried
(move Slide
(between ifnot (is In (between) (sites Empty)) ))
(to ifis Empty atto))
)
But this also allowed moves to the occupied intermediate positions.
I tried
(move Hop
(between
(range 0 9)
ifnot (is In (between) (sites Empty)) )
)
(to ifis Empty atto))
)
But this didn't work at all (maybe the board was too small?).
Leaving the range out only allowed single hops.