NAME

Poker::Game::Holdem - Texas Hold'em

VERSION

Version 0.12

SYNOPSIS

use Poker::Game::Holdem;
use feature qw(say);

my $game = Poker::Game::Holdem->new( iterations => 1000 );

my $hero    = $game->deal_hole(['As', 'Kd']);
my $villain = $game->deal_hole(['7h', '7c']);

$game->flop(['Ah', 'Kc', '2d']);
$game->turn('9s');
$game->river('3c');

$game->evaluate($hero);
$game->evaluate($villain);

say $hero->name;          # Two Pair
say $hero->best_combo_flat;

# Or equity from an earlier street:
$game->reset;
$hero    = $game->deal_hole(['As', 'Kd']);
$villain = $game->deal_hole(['7h', '7c']);
$game->equity([ $hero, $villain ]);
say $hero->ev;            # approx preflop equity %

DESCRIPTION

Texas Hold'em: two hole cards, five community cards. Any combination of hole and community cards may be used to make the best five-card hand. Standard highball ranking.

AUTHOR

Nathaniel Graham, <ngraham at cpan.org>

LICENSE AND COPYRIGHT

Copyright 2016-2026 Nathaniel Graham.