1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 06:27:45 +00:00

Hearts: Add support for playing more than one hand

This changes the game so that more than one hand can be played. Once
one player has 100 or more points the game ends. A score card is shown
between each hand.

Fixes #7374.
This commit is contained in:
Gunnar Beutner 2021-05-24 22:54:47 +02:00 committed by Andreas Kling
parent e636ed43eb
commit 87ace131bc
6 changed files with 226 additions and 33 deletions

View file

@ -49,6 +49,7 @@ public:
Vector<RefPtr<Card>> hand;
Vector<RefPtr<Card>> cards_taken;
Vector<int> scores;
Gfx::IntPoint first_card_position;
Gfx::IntPoint card_offset;
Gfx::IntRect name_position;