This is a Python program that simulates a deck of cards and evaluates poker hands for players. It utilizes algorithms like the Minimax algorithm to determine the best possible hand in a poker game.
CardClass: Represents a card from the deck with a value and a suit. It can be showing or hidden.DeckClass: Simulates a deck of cards, with methods to create a new deck, shuffle it, and deal card hands.evaluate_handFunction: Evaluates a player's hand based on the cards they have in hand and the community cards (the flop).- Minimax Algorithm: Used to obtain the best possible hand among multiple players' hands.
- Usage Example: An example of how to use the classes and functions to simulate a poker game with multiple rounds and players.
- Clone this repository to your local machine.
- Ensure you have Python installed.
- Run the
main.pyfile. - Follow the instructions in the console to simulate the poker game.
- This program is designed to simulate poker games in a basic and educational manner.
- If the deck runs out of cards during a round, a new deck will be automatically created.
- You can adjust the number of rounds and players per round in the code according to your preferences.
- Have fun playing and learning about poker hand evaluation!
If you find any bugs or wish to contribute new features, feel free to make a pull request!
This program is distributed under the MIT license. Refer to the LICENSE file for more details.