11-09-2020, 01:05 PM
Hello again. Another thing I'm stuck on. In a game where each player has two moves in a row, and I need to do some maintenance at the end of the turn:
The player can correctly play twice in a row, but the "Refill" is not applied afterwards. Note that "Refill" works when using is simply as "then" or as the first clause of the "if".
In case it matters, here is the definition of "Refill":
The player can play one piece of each of their colors during their turn, but not two of the same, so I'm using a hand with one piece of each, that refills at the end of the turn.
Thanks!
Code:
(play
(move
(from (sites Hand Mover))
(to (sites Empty))
(then
(if (not "SameTurn")
(moveAgain)
"Refill"
)
)
)
)
The player can correctly play twice in a row, but the "Refill" is not applied afterwards. Note that "Refill" works when using is simply as "then" or as the first clause of the "if".
In case it matters, here is the definition of "Refill":
Code:
(define "Refill"
(remove (sites hand Mover)
(then
(add (piece (id "HexA" Mover)) (to (handSite Mover 0))
(then
(add (piece (id "HexB" Mover)) (to (handSite Mover 1)))
)
)
)
)
)
The player can play one piece of each of their colors during their turn, but not two of the same, so I'm using a hand with one piece of each, that refills at the end of the turn.
Thanks!