mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 00:07:35 +00:00
Hearts: Pick better non-matching cards
When we don't have a matching card for the lead card rather than always preferring to play hearts we should try to get rid of our high value cards first if no other player has hearts cards higher than what we have.
This commit is contained in:
parent
4a8d8da46c
commit
8b9da08d5a
3 changed files with 18 additions and 8 deletions
|
@ -38,7 +38,7 @@ public:
|
|||
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);
|
||||
size_t pick_max_points_card();
|
||||
size_t pick_max_points_card(Function<bool(Card&)>);
|
||||
Optional<size_t> pick_specific_card(Card::Type type, CardValue value);
|
||||
size_t pick_last_card();
|
||||
bool has_card_of_type(Card::Type type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue