summaryrefslogtreecommitdiff
path: root/Userland/Games/Hearts
AgeCommit message (Collapse)Author
2021-05-26Hearts: Highlight cards when an invalid play is attemptedGunnar Beutner
This briefly inverts the selected card when the user attempts to make an invalid play.
2021-05-25Hearts: Don't advance the game's state when an animation is playingGunnar Beutner
Previously we'd end up cancelling an animation that was still playing when the user selects a card.
2021-05-25Hearts: Fix animations that get stuck "mid-flight"Gunnar Beutner
When an animation is stopped the cards should be moved to their final position anyway. Otherwise they might end up getting stuck in the middle of the animation.
2021-05-25Hearts: Add support for playing more than one handGunnar Beutner
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.
2021-05-25Hearts: Let the AI continuously play gamesGunnar Beutner
When there are no human players (toggled with Shift-F10) the AI will continuously start new games when the current game has finished.
2021-05-25Hearts: Implement passing cards to other playersGunnar Beutner
Fixes #7375.
2021-05-25Hearts: Move card click handler into a separate methodGunnar Beutner
2021-05-25Hearts: Move sorting helper from Player::pick_lead_card into a methodGunnar Beutner
2021-05-25Hearts: Move code to reposition cards into a separate methodGunnar Beutner
2021-05-25Hearts: Move round initialization into a separate methodGunnar Beutner
2021-05-25Hearts: Move hand sorting functionality into a methodGunnar Beutner
2021-05-23Hearts: Allow player to set their nameJosh Perry
Added a new settings dialog to Hearts with a textbox to allow the player to set a name, which is persisted in the Hearts config file.
2021-05-23Hearts: Add key combinations to letting the AI play for youGunnar Beutner
A single card can be played with F10 while Shift-F10 toggles the AI for the current as well as all future tricks.
2021-05-23Hearts: Let the AI prefer lead cards for which other cards are in playGunnar Beutner
When picking a lead card the AI should avoid playing cards where it knows that no other player has a lower value card of the same type.
2021-05-23Hearts: Fix sorting function for lead cardsGunnar Beutner
The pick_lead_card() function sometimes picks the incorrect card because the sorted_hand vector wasn't being sorted properly.
2021-05-22Hearts: Let the AI pick better lead cardsGunnar Beutner
Instead of picking the card with the lowest value we should pick the card with the highest value for which we know no lower value card is in play anymore and that someone else still has an even higher value card.
2021-05-22Hearts: Prefer to play Queen of Spades when we're the trailing playerGunnar Beutner
Previously in a trick like 2S, KS, 5S we'd rather follow up with AS instead of QS. We should prefer to play QS in this case.
2021-05-22Hearts: Fix crash when starting an animation when there already is oneGunnar Beutner
This ensures that the preceding animation is stopped first.
2021-05-22Hearts: Remove dead codeGunnar Beutner
2021-05-21Games: Add HeartsGunnar Beutner