quac88 / NitDestroyer

Austin community college computer science club group machine learning project for poker and hidden information games
MIT License
3 stars 2 forks source link

Quac/feat/improve run.py #22

Closed quac88 closed 11 months ago

quac88 commented 11 months ago

Description of what you changed

Created a handranking class in carddecky.py that evaluates straight flush, straight, three of a kind, flush, pair, high card. Created betting round methods in the Game class to handle the bettting round logic. Created a determine winner method in the dealer class to determine which player has the best hand at the end of the turn betting round. Implemented qqdm to track how many hands per second and estimate completion time Implemented multiprocessing to play multiple hands at once. Removed print statements. - I will created unit testing files that add these back in

Did you add any new dependencies ex (using a new library, python version, etc)?

qqdm

How did you test your changes?

I have not thoroughly tested these changes. I will create unit tests before merging into main. I tested this by playing thousands of hands at once and analyzing each hand for logic errors. However, this is an insuficent form of testing that will need to be addressed. Known bug is that players can play games and go into debt (have less than 0 chips)

What issue (if any) does this fix?

N/A this is mainly a feature update

Checklist:

quac88 commented 11 months ago

I also created Enum classes for the deck class and the game class for faster processing