JankoDedic / poker

Poker game model written in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

poker

Build Status Build status GitHub license

Introduction

This component provides a fully functional No-Limit Hold'em poker model with hand evaluation. API is not stable. Support for other games is planned and in development.

Usage

A normal use case of playing a game with user input should look something like this:

auto dealer = poker::dealer(players, button, blinds, deck, community_cards);
dealer.start_hand();
while (not dealer.done()) {
    while (not dealer.betting_round_over())
        dealer.action_taken(get_user_action());
    dealer.end_betting_round();
}
dealer.showdown();

About

Poker game model written in C++

License:MIT License


Languages

Language:C++ 98.8%Language:CMake 1.2%