11-18-2020, 08:19 AM
Hi,
Unfortunately, that does not work like that.
If any ludeme activates the stack mode of Ludii, the default of moving a piece will put that piece on top of other occupied sites (because all the sites are seen as a stack (an empty stack for empty sites, a stack of one piece for sites occupied by a single piece or a stack of n > 1).
For what you describe in your post the correct description is
Regards,
Eric
Unfortunately, that does not work like that.
If any ludeme activates the stack mode of Ludii, the default of moving a piece will put that piece on top of other occupied sites (because all the sites are seen as a stack (an empty stack for empty sites, a stack of one piece for sites occupied by a single piece or a stack of n > 1).
For what you describe in your post the correct description is
Code:
(game "StackParameterTest"
(players 2)
(equipment
{
(board (hex 5))
(piece "Disc" Each)
}
)
(rules
(start
{
(place "Disc1" (forEach (sites Board) if:(is Even (site))))
(place "Disc2" (forEach (sites Board) if:(is Odd (site))))
}
)
(play
(or
(move
(from (difference (sites Outer) (sites Empty))
(to (difference (sites Board) (sites Empty)))
stack:true
)
(move
(from (difference (sites Inner) (sites Empty)))
(to (sites Board)
(apply if:(not (is Empty (to)))
(remove (to))
)
)
)
)
)
(end
(if
(no Moves Next)
(result Mover Win)
)
)
)
)
Regards,
Eric