07-30-2020, 03:30 PM
Hi,
I'd do it as follows:
(play
(move Add (to (sites Empty))
(then
(add (piece (id "Disc" Next)) // assumes both players use Disc
(to
(intersection
(expand (sites Occupied by:Next) Orthogonal)
(sites Empty)
)
)
)
)
)
)
and just make the group growth an automatic effect of the previous player's turn. This takes liberties with the conceptual delineation of turns, but works well in practice.
If you need to exclude the player's last move, then you could try something along the lines of (difference ... (sites (to)) or (last To).
Regards,
Cameron
I'd do it as follows:
(play
(move Add (to (sites Empty))
(then
(add (piece (id "Disc" Next)) // assumes both players use Disc
(to
(intersection
(expand (sites Occupied by:Next) Orthogonal)
(sites Empty)
)
)
)
)
)
)
and just make the group growth an automatic effect of the previous player's turn. This takes liberties with the conceptual delineation of turns, but works well in practice.
If you need to exclude the player's last move, then you could try something along the lines of (difference ... (sites (to)) or (last To).
Regards,
Cameron