TricksterCards / TricksterBots

Suggest methods for bots used in Trickster Cards.
MIT License
9 stars 8 forks source link

Fix bad Euchre discards/passes #235

Closed antross closed 5 months ago

antross commented 5 months ago

Fix #233

The discard algorithm (also used for passing a card away from the maker in call-for-best) is pretty simple and could sometimes lead to passing good off-suit cards, especially in no trump.

Fixed by adding a couple of extra early sort conditions to prefer keeping off-suit Aces and protected Kings if possible.