Break up the played cards scoring loop into several functions (#224)

* rename PLAY_PLAYING state into PLAY_STARTING

* make discarded_card and sound_played global variables

* Broken up cards_score state update

---------

Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com>
Co-authored-by: MeirGavish <meir.gavish@gmail.com>
This commit is contained in:
Geralt
2025-11-16 17:33:01 +02:00
committed by GitHub
co-authored by MathisMartin31 MeirGavish
parent 557e591c31
commit 1ac55692e9
2 changed files with 364 additions and 297 deletions
+4 -3
View File
@@ -50,11 +50,12 @@ enum HandState
enum PlayState
{
PLAY_PLAYING,
PLAY_STARTING,
PLAY_BEFORE_SCORING,
PLAY_SCORING_CARDS,
PLAY_SCORING_HELD,
PLAY_SCORING_JOKERS,
PLAY_SCORING_CARD_JOKERS,
PLAY_SCORING_HELD_CARDS,
PLAY_SCORING_INDEPENDENT_JOKERS,
PLAY_ENDING,
PLAY_ENDED
};