https://github.com/andy5995/zigpokerhands
A program that uses zigdeck to evaluate five cards to determine if it matches a poker hand
https://github.com/andy5995/zigpokerhands
cards mit-license poker simulations zig zig-package
Last synced: 10 months ago
JSON representation
A program that uses zigdeck to evaluate five cards to determine if it matches a poker hand
- Host: GitHub
- URL: https://github.com/andy5995/zigpokerhands
- Owner: andy5995
- License: mit
- Created: 2024-03-12T07:04:23.000Z (over 2 years ago)
- Default Branch: trunk
- Last Pushed: 2025-08-18T05:13:42.000Z (10 months ago)
- Last Synced: 2025-08-22T02:57:59.417Z (10 months ago)
- Topics: cards, mit-license, poker, simulations, zig, zig-package
- Language: Zig
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/andy5995/zigpokerhands/actions/workflows/linux.yml)
# zigpokerhands
A program that uses [zigdeck](https://github.com/andy5995/zigdeck) to evaluate
five cards to determine if it matches a poker hand
## Output examples
```
Evaluating 1000000 hands...
Pair: 421692
TwoPair: 47047
ThreeOfAKind: 20578
Straight: 4090
Flush: 2514
FullHouse: 1450
FourOfAKind: 244
StraightFlush: 18
RoyalFlush: 1
```
```
Evaluating 1000000 hands...
Pair: 421887
TwoPair: 47001
ThreeOfAKind: 20558
Straight: 4168
Flush: 2511
FullHouse: 1378
FourOfAKind: 225
StraightFlush: 21
RoyalFlush: 0
```
```
Evaluating 1000000 hands...
Pair: 420623
TwoPair: 47240
ThreeOfAKind: 20832
Straight: 4136
Flush: 2587
FullHouse: 1391
FourOfAKind: 252
StraightFlush: 19
RoyalFlush: 2
```