![]() |
Not sure why players are forced to pass - Printable Version +- Ludii Forum (https://ludii.games/forums) +-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5) +--- Forum: Grammar Problems (https://ludii.games/forums/forumdisplay.php?fid=24) +--- Thread: Not sure why players are forced to pass (/showthread.php?tid=458) |
Not sure why players are forced to pass - patzer - 02-25-2021 I am trying to implement Teeko. In my .lud file, I am using two phases, the first for the drops and the second for the moves once all the pieces have been dropped. However, whenever I try and play a game (or have two AIs play each other), once all the pieces are dropped, it the player immediately shows both players as passing and then the game is over with no winner. I've tried several approaches (and since I was too lazy to put the code in git, I can't easily reconstruct it ![]() Here's my code: Code: (game "Teeko" RE: Not sure why players are forced to pass - xenos1984 - 02-25-2021 I think it should be (move Step ...) with Step beginning with capital letter. RE: Not sure why players are forced to pass - Eric Piette - 02-25-2021 Hi, The step moves have to be defined according to the position of each piece. Consequently it has to be in the piece move generator like in the file attached here. Then to call this generator you have to use (forEach Piece) in the playing rules. You can try the file in attachment. Regards, Eric RE: Not sure why players are forced to pass - patzer - 02-25-2021 (02-25-2021, 07:28 AM)Eric Piette Wrote: You can try the file in attachment. Thanks! That does the trick. Now I need to understand why it does ![]() Ok, next step is I will work on finishing the win conditions and a few other items needed to polish this up. Thanks again! Matt |