01-05-2021, 04:46 PM
Hi,
That's allowed to put the pass or anything you want in the move generator of a piece type. But of course if you have many pieces of that type and you call the (forEach Piece ...) ludeme all the moves in it will be duplicated.
The description of Ludii is the closest possible of a Game logic point of view but that's stay a language interpreted by a compiler. Consequently, that's up to the game designer to be sure of his description to avoid such cases.
Regards,
Eric
That's allowed to put the pass or anything you want in the move generator of a piece type. But of course if you have many pieces of that type and you call the (forEach Piece ...) ludeme all the moves in it will be duplicated.
The description of Ludii is the closest possible of a Game logic point of view but that's stay a language interpreted by a compiler. Consequently, that's up to the game designer to be sure of his description to avoid such cases.
Regards,
Eric