Socket
Book a DemoInstallSign in
Socket

github.com/VSmert/poker-hand-evaluator

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/VSmert/poker-hand-evaluator

Source
Go
Version
v0.0.0-20220125225509-975d6b3995f8
Version published
Created
Source

Poker Hand Evaluator

This is a Texas Holdem poker hand evaluation go library.

Can evaluate 5,6 and 7 card combinations.

It uses TwoPlusTwo algorithm with pre-build ranks table.

On my machine (i7-7700HQ 2.80 GHz) it can evaluate 53 millions 7-cards hands per second.

Installation

go get github.com/spiritofsim/phe

Usage

Eval func returns hand struct. Hands can be evaluated with Hand.Compare method.

See test fo examples.

FAQs

Package last updated on 25 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts