atharvapatil22 / PokerAI

0 stars 0 forks source link

Tgmiddl2 test class #65

Closed TiptonG closed 4 weeks ago

TiptonG commented 4 weeks ago

Poker now takes an array of players instead of a number of players, poker also now takes an array of decks as deckSequences, and handles it accordingly. WARNING: if you try to run testPoker.py when there is an uncommented running of testGame in the poker.py file, it will run that when it imports, so comment it out before you run tests. Players now store a record of how many chips they had at given times. poker.py and testPoker.py now interact as intended, added a tostring method to Deck for convenience All in and fold handling was freezing the game, I fixed it by preventing turn activation when there were no legal moves for a player. Removed redundancy in testPoker.py