Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zloteerer/texas-holdem-evaluator
C++ Texas Hold'em Poker Hand Evaluator 🃏
https://github.com/zloteerer/texas-holdem-evaluator
cpp hand-rank poker rank ranking texas-holdem
Last synced: about 1 month ago
JSON representation
C++ Texas Hold'em Poker Hand Evaluator 🃏
- Host: GitHub
- URL: https://github.com/zloteerer/texas-holdem-evaluator
- Owner: zloteerer
- Created: 2023-10-21T10:36:09.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-04T19:23:08.000Z (about 1 year ago)
- Last Synced: 2024-11-23T20:38:50.999Z (about 1 month ago)
- Topics: cpp, hand-rank, poker, rank, ranking, texas-holdem
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C++ Texas Hold'em Poker Hand Evaluator
![Poker Image](https://play-lh.googleusercontent.com/tfQ4f-Eup5yuDgxGVjrDYmWv_U8VWhfI3-dBi7HwmXSubB-UGHV8JXJ7Moli2lXVd1k)
## Table of Contents
- [Introduction](#introduction)
- [Features](#features)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Build](#build)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)## Introduction
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.
## Features
- Efficient evaluation of poker hands using bit fields.
- Detection of winning hands and players in Texas Hold'em games.## Getting Started
### Prerequisites
Before you get started, make sure you have the following installed:
- CMake
### Build
1. Clone the repository:
```sh
git clone https://github.com/evandelagnes/texas-holdem-evaluator.git
cd poker-winner-detector
```2. Create a build directory:
```sh
mkdir build
cd build3. Generate the build system using CMake:
```sh
cmake ..
```4. Build the project:
```sh
make
```## Usage
To evaluate Texas Hold'em poker hands and determine the winner, use the following command:
```sh
Usage: ./poker [options]Options:
-b, --board Specify the community cards on the board. Provide 3, 4, or 5 cards, e.g., -b 5h9djsqckh.
-p, --player 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
``````