Game/CourchevalHiLo.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 29 CC 2 SCAR 12.8
CC
2
Cov
0%
door
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 package Poker::Game::CourchevalHiLo;
2 our $VERSION = '0.12';
3  
4  
5 use strict;
6 use warnings FATAL => 'all';
7 use Moo;
8  
9 =head1 NAME
10  
11 Poker::Game::CourchevalHiLo - Courchevel high/low 8-or-better
12  
13 =head1 VERSION
14  
15 Version 0.12
16  
17 =cut
18  
19  
20 =head1 DESCRIPTION
21  
22 Courchevel Hi-Lo: five hole cards, board dealt 1 + 2 + 1 + 1.
23 Omaha construction rules with high and low 8-or-better.
24  
25 =cut
26  
27 extends 'Poker::Game::Omaha5HiLo';
28  
29 sub door {
30 my ( $self, $card ) = @_;
31 die "door requires an empty board" if @{ $self->board };
32 return $self->_deal_street( 1, $card );
33 }
34  
35 around flop => sub {
36 my ( $orig, $self, $cards ) = @_;
37 die "Courchevel flop requires exactly 1 door card on board"
38 unless @{ $self->board } == 1;
39 return $self->_deal_street( 2, $cards );
40 };
41  
42 1;