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 if
not (is In (between) (sites Empty)) ))
(to if
is Empty at
to))
)
But this also allowed moves to the occupied intermediate positions.
I tried
(move Hop
(between
(range 0 9)
if
not (is In (between) (sites Empty)) )
)
(to if
is Empty at
to))
)
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 if

(to if


)
But this also allowed moves to the occupied intermediate positions.
I tried
(move Hop
(between
(range 0 9)
if

)
(to if


)
But this didn't work at all (maybe the board was too small?).
Leaving the range out only allowed single hops.