carlofazioli / cardiathena

A project to study strategies in the game of hearts, using distributed computing, AI, and data analytics.
GNU General Public License v3.0
6 stars 1 forks source link

Implemented mark's LowLayer method 1 passing. #81

Closed davidjha closed 4 years ago

davidjha commented 4 years ago

The passing_smart_sequence() and pick_trouble_card() in LowLayer.py is incorrectly selecting the right cards to pass. On line 244, the statement if len(suit) > num_cards is selecting cards suits with the most amount of cards, when it should be selecting the suit with the least amount of cards. Also going off Mark's strategy for method 1 passing, trouble suits are the suits where its lowest card is higher than the lowest cards of all the other suits. The 3 cards to pass are the highest cards in the trouble suit.