Ludii Forum
count pieces in stack - Printable Version

+- Ludii Forum (
+-- Forum: Questions (
+--- Forum: About the Ludii Grammar (
+--- 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 ?

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).