Ludii Forum
count pieces in stack - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13)
+--- Forum: About the Ludii Grammar (https://ludii.games/forums/forumdisplay.php?fid=15)
+--- Thread: count pieces in stack (/showthread.php?tid=1476)



count pieces in stack - Tester001 - 02-20-2023

I noticed some strange behavior when using the  (count Pieces)  ludeme.

The picture below shows the move of a piece in the game Bashni. 
In the status notes you can see the  piece counts  for the  (last To)  position and although there are only two players in the game, 
the piece counts for  Mover + Next  don't equal the total piece count for that position.

Maybe I'm not using the count ludeme in a proper way (couldn't get it to work with 'count at:')
 but should't the total piece count equal the sum of Mover + Next ?


EDIT:
This seems to happen in all games that use stack:true with capture moves.
In some of these games it also happens without captures in normal moves (from) (to).