mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:57:35 +00:00
Hearts: Add key combinations to letting the AI play for you
A single card can be played with F10 while Shift-F10 toggles the AI for the current as well as all future tricks.
This commit is contained in:
parent
2dfced2501
commit
6a194869cf
3 changed files with 11 additions and 4 deletions
|
@ -40,7 +40,6 @@ private:
|
|||
void continue_game_after_delay(int interval_ms = 750);
|
||||
void advance_game();
|
||||
size_t pick_card(Player& player);
|
||||
bool is_human(Player& player) const { return &player == &m_players[0]; }
|
||||
size_t player_index(Player& player);
|
||||
Player& current_player();
|
||||
bool game_ended() const { return m_trick_number == 13; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue