andy5995 / zigpokerhands

A program that uses zigdeck to evaluate five cards to determine if it matches a poker hand

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux CI

zigpokerhands

A program that uses 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

About

A program that uses zigdeck to evaluate five cards to determine if it matches a poker hand

License:MIT License


Languages

Language:Zig 100.0%