1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 17:37:47 +00:00

Hearts: Play the first valid card (left-to-right) when pressing space

This commit is contained in:
Matthew B. Jones 2021-06-02 16:07:12 -06:00 committed by GitHub
parent 6f38ce8f47
commit 3ad7a1e944
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View file

@ -44,6 +44,7 @@ private:
void continue_game_after_delay(int interval_ms = 750);
void advance_game();
size_t pick_card(Player& player);
size_t pick_first_card_ltr(Player& player);
size_t player_index(Player& player);
Player& current_player();
bool game_ended() const { return m_trick_number == 13; }