0.01
No release in over 3 years
Low commit activity in last 3 years
Poker library introducing the game logic with a simple interface. Currently offering only 6-max Holdem games.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 0.8
~> 13.0
~> 3.4
~> 0.48

Runtime

~> 3.0
 Project Readme

Poker Engine

Horizontally scalable, immutable, and thread-safe poker library written in Ruby, utilizing the Redux design pattern and Persistent data structures.

Example

There is a simple console interface that you can run ./examples/simple-gameplay.rb and play against yourself!

Valid moves:

  • check
  • fold
  • call
  • raise [bet amount], example: raise 100

Documentation

You can think about the PokerEngine::Game like for a state machine. You can initiate it with .start and you can transition from one state in another with .next.

For more info check you can check the console example or the integration spec.

Setup

  1. Make sure you have Ruby and bundler installed

  2. Clone the repo

git clone git@github.com:kanevk/poker-engine.git
  1. Install the dependencies
bundle
  1. Run tests
bundle exec rspec -fd