An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Linux CI](https://github.com/andy5995/zigpokerhands/actions/workflows/linux.yml/badge.svg)](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

```