| 1 | package Poker::Game::Low27SingleDraw; | ||||||||||||||||||||
| 2 | 1 | our $VERSION = '0.12'; | |||||||||||||||||||
| 3 | |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | 1 | ▶ | use warnings FATAL => 'all'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | 1 | ▶ | use Moo; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | 1 | ▶ | use Poker::Eval::Community; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | 1 | ▶ | use Poker::Score::Low27; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | =head1 NAME | ||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | Poker::Game::Low27SingleDraw - 2-7 single draw | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | =head1 VERSION | ||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | Version 0.12 | ||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | =cut | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | 1 | extends 'Poker::Game'; | |||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 0 | ▶ | has '+hole_count' => ( default => sub { 5 } ); | ||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||||||||||||
| 25 | 0 | ▶ | has '+board_size' => ( default => sub { 0 } ); | ||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||||||||||||
| 26 | 0 | ▶ | has '+max_draw_rounds' => ( default => sub { 1 } ); | ||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | 0 | ▶ | around BUILDARGS => sub { | ||||||||||||||||||
|
Subroutine
__ANON__: not called CC=4 SCAR=30.0
| |||||||||||||||||||||
| 29 | 0 | my ( $orig, $class, @args ) = @_; | |||||||||||||||||||
| 30 | 0 | my $args = $class->$orig(@args); | |||||||||||||||||||
| 31 | 0 | ▶ | $args = {} unless ref $args eq 'HASH'; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 32 | 0 | ▶ | $args->{scorer} //= Poker::Score::Low27->new; | ||||||||||||||||||
|
Condition0%0/3
$args->{"scorer"} //= "Poker::Score::Low27"->new
MC/DC0%0/2
$args->{"scorer"} //= "Poker::Score::Low27"->new
$args->{"scorer"}
"Poker::Score::Low27"->new
Truth table0%0/3
A //= B
A= $args->{"scorer"}B= "Poker::Score::Low27"->new
| |||||||||||||||||||||
| 33 | $args->{eval_engine} //= Poker::Eval::Community->new( | ||||||||||||||||||||
| 34 | scorer => $args->{scorer}, | ||||||||||||||||||||
| 35 | 0 | ▶ | ); | ||||||||||||||||||
|
Condition0%0/3
$args->{"eval_engine"} //= "Poker::Eval::Community"->new("scorer", $args->{"scorer"})
MC/DC0%0/2
$args->{"eval_engine"} //= "Poker::Eval::Community"->new("scorer", $args->{"scorer"})
$args->{"eval_engine"}
"Poker::Eval::Community"->new("scorer", $args->{"scorer"})
Truth table0%0/3
A //= B
A= $args->{"eval_engine"}B= "Poker::Eval::Community"->new("scorer", $args->{"scorer"})
| |||||||||||||||||||||
| 36 | 0 | return $args; | |||||||||||||||||||
| 37 | 1 | }; | |||||||||||||||||||
| 38 | |||||||||||||||||||||
| 39 | 1 | 1; | |||||||||||||||||||