Skip to content

AlejoCNYT/BestHandPoker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Deck of Cards and Poker Hand Evaluation

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.

Key Features

  • Card Class: Represents a card from the deck with a value and a suit. It can be showing or hidden.
  • Deck Class: Simulates a deck of cards, with methods to create a new deck, shuffle it, and deal card hands.
  • evaluate_hand Function: 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.

Usage Instructions

  1. Clone this repository to your local machine.
  2. Ensure you have Python installed.
  3. Run the main.py file.
  4. Follow the instructions in the console to simulate the poker game.

Notes

  • 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!

Contributions

If you find any bugs or wish to contribute new features, feel free to make a pull request!

License

This program is distributed under the MIT license. Refer to the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages