Pah Tum Score Counting - 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: Pah Tum Score Counting (/showthread.php?tid=1611) |
Pah Tum Score Counting - Victor Putrich - 07-11-2023 Greetings Currently, I am studying the game of Pah Tum and am interested in testing new game variations using the Ludii platform. However, I've observed that Pah Tum is not currently available within the Ludii game library. As such, my goal is to implement this game in Ludii platform. During my examination of the Ludii grammar, I was unable to find a rule corresponding to the unique scoring system of Pah Tum, which is a critical part of determining the game's winner. In Pah Tum, scoring occurs after the board is completely filled. The scoring system is based on counting the number of aligned pieces, with specific points allotted for alignments of different lengths. To illustrate, here is the specific scoring pattern in Pah Tum:
about Pah Tum: https://memim.com/pah-tum.html https://brainking.com/en/GameRules?tp=72 Thank you in advance for your assistance RE: Pah Tum Score Counting - fuerchter - 07-15-2023 Hi, have you made any progress on this by now? If not here are some thoughts: For the scoring pattern/table itself it would make sense to use the (map) ludeme, like so: Code: (map {(pair 1 0) (pair 2 0) (pair 3 3) (pair 4 10) (pair 5 25) (pair 6 56) (pair 7 119)}) Then what I'd do is reset the Mover's score to 0 after their turn, and use something like this: Code: (addScore Mover (mapEntry [the length of the line you found])) Relevant ludemes: (addScore), (mapEntry) This would make it so the score is displayed and updated during the game (instead of at the end), which I guess you could have different opinions on. If you need any more help past this, feel free to ask. RE: Pah Tum Score Counting - kerios66 - 02-10-2024 (07-11-2023, 03:10 PM)Victor Putrich Wrote: Greetings The scoring system indeed poses a challenge, but perhaps Ludii's flexible grammar can accommodate custom scoring rules. palworld |