TricksterCards / TricksterBots

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

Pinochle: Feedback on bot's passing #170

Open johnson520 opened 1 year ago

johnson520 commented 1 year ago

Playing Pinochle, the bots frequently keep Trump in their hand when they have 2, 3, or 4 cards of Trump to pass. For example, my friend and I were playing as we frequently do and I called for Diamonds as trump for my bot to send me. The bot had an Ace, Ten, and 2 Jacks of Diamonds in its hand. Bot sent me the Ace, Ten, and 1 Jack of Diamonds and a Jack of Hearts. I had doubles of Aces, Tens, Kings, and Queens of Diamonds in my hand. I would have had a double run had the bot sent all diamonds to me. The bot kept 1 Jack of Diamonds so that it could meld Jacks around! The bot should always give all the trump it has and not keep any so that it could have Aces, Kings, Queens, or Jacks around! If the bot has 5 or more of the suit called for, then it should Ace, marriages, Kings, Queens, Tens, and Jacks. Of course, this would be a more difficult program to write. But it happens to us frequently that the bots keep a needed trump so that it could meld an “around” when if it had submitted all 4 of its Trump cards, our score would have been much higher than the score we had when it kept 1 of the Trump cards so it could score an "around".

johnson520 commented 1 year ago

Last night in a game started at 10:53 EST, with SnikSnak as my partner vs Duck Squad and Brindabella, Brindabella had a hand where the bot passed his meld and shredded his meld, including torching queens in a pass back to Brindabella’s partner. Something in programming hierarchy is destroying melds in certain situations.