Welcome to the Texas Hold'em Poker Hand Evaluator! This project is a fast and efficient Texas Hold'em poker hand evaluator using bit fields to determine the winning hand.
- Efficient evaluation of poker hands using bit fields.
- Detection of winning hands and players in Texas Hold'em games.
Before you get started, make sure you have the following installed:
- CMake
-
Clone the repository:
git clone https://github.com/evandelagnes/texas-holdem-evaluator.git cd poker-winner-detector
-
Create a build directory:
mkdir build cd build
-
Generate the build system using CMake:
cmake ..
-
Build the project:
make
To evaluate Texas Hold'em poker hands and determine the winner, use the following command:
Usage: ./poker [options]
Options:
-b, --board <cards> Specify the community cards on the board. Provide 3, 4, or 5 cards, e.g., -b 5h9djsqckh.
-p, --player <cards> Specify the hole cards for players. Provide 2 cards per player with a maximum of 10 players, e.g., -p 2c3s.
Example:
./poker -b 3s9hkd -p 7cah