Ludii Forum
Problem with all Passed - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Game Problems (https://ludii.games/forums/forumdisplay.php?fid=17)
+--- Thread: Problem with all Passed (/showthread.php?tid=268)



Problem with all Passed - dale walton - 11-20-2020

Here is a nearly working  Infuse Game.

The game is supposed to end with a double pass. However If the scores are unequal, it doesn't.  Is my end condition syntax wrong, or is this a bug?

Note that the rules don't allow a pass if a placement can be made, but if you purposefully move to give an advantage to one player, you should be able to reproduce the infinite passing behavior (or allowing infinite passing behavior) when the scores are unequal.


RE: Problem with all Passed - Eric Piette - 11-20-2020

Hi,

In your description the pass moves are described with (pass) which is not a decision but an effect.
Can you modified your (pass) to (move Pass) and try again if the problem is still there?
Because they should be a decision and the ludeme (all passed) looks for decision moves.

Regards,
Eric


RE: Problem with all Passed - dale walton - 11-20-2020

Thanks,
I also just found that, and will try. There was also another funny thing it caused
Player 1 to move.
WARNING: Move [[Pass:]] was not a decision move.
Player 1 has swapped.
Player 2 to move.


RE: Problem with all Passed - Eric Piette - 11-20-2020

Hi,

Yes we implemented that warning detection to avoid that kind of issue in notifying the user and the game designer in testing their description.

Regards,
Eric


RE: Problem with all Passed - dale walton - 11-20-2020

I also took the decision move out of the ifAfterwards:(can Move ... and rewrote the end conditions in a different way, and it now seems to be working. Also added board options. - So please check it out, and if it seems OK, accept the attached file for submission.


P.S.
The trap for decision/non-decision would be better to have during compile.  Such errors seem to have lots of side effects that might preclude us seeing the warning during testing.


RE: Problem with all Passed - Eric Piette - 11-23-2020

Hi,

Ok that game will be added to the next release.
Thanks for the submission.

Regards,
Eric