summaryrefslogtreecommitdiff
path: root/Userland/Games/Hearts/Player.h
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-31 23:56:13 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-01 08:52:08 +0200
commit38f8a6aabbfe2378bae1da53ba77344be77f8f56 (patch)
tree713cf23567bb099566e33c6773dcda95d608838b /Userland/Games/Hearts/Player.h
parent40ddb734ee23a9a702dac99ef4ad23691452cda4 (diff)
downloadserenity-38f8a6aabbfe2378bae1da53ba77344be77f8f56.zip
Hearts: Pick better lead cards
Previously the AI would prefer playing a lead card for which no other player had a card with a higher value even though it also had a card for which a higher value card was still in play.
Diffstat (limited to 'Userland/Games/Hearts/Player.h')
-rw-r--r--Userland/Games/Hearts/Player.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/Hearts/Player.h b/Userland/Games/Hearts/Player.h
index db30a7ef4c..9f6181e477 100644
--- a/Userland/Games/Hearts/Player.h
+++ b/Userland/Games/Hearts/Player.h
@@ -34,7 +34,7 @@ public:
}
NonnullRefPtrVector<Card> pick_cards_to_pass(PassingDirection);
- size_t pick_lead_card(Function<bool(Card&)>, Function<bool(Card&)>, Function<bool(Card&)>);
+ size_t pick_lead_card(Function<bool(Card&)>, Function<bool(Card&)>);
Optional<size_t> pick_low_points_high_value_card(Optional<Card::Type> type = {});
Optional<size_t> pick_lower_value_card(Card& other_card);
Optional<size_t> pick_slightly_higher_value_card(Card& other_card);