GAIGResearch / TabletopGames

MIT License
81 stars 69 forks source link

Love Letter Update #238

Closed rdgain closed 1 year ago

rdgain commented 1 year ago

Changes outside of the package are mostly due to renaming WIN, LOSE, DRAW game results to _GAME to allow distinguishing from _ROUND in games which are played over multiple rounds where players may be eliminated before coming back for the next round.

A thought on game result enums, currently often used to decide if a player should have actions generated for them or not. I see this more as a tree structure, i.e. 3 states are key, PLAYING (because game is ongoing, player is expected to make frequent decisions), PAUSE_PLAYING (if ROUND_WIN/LOSE, or just passed for the current round, but then coming back for more play later), and FINISHED_PLAYING (which can be due to WIN_GAME, LOSE_GAME, DRAW_GAME). I'm not sure if it's worth to rethink the structure of these a little for more clarity?