| 1 | package Poker::Score::Bring::Low; | ||
| 2 | 1 | our $VERSION = '0.12'; | |
| 3 | |||
| 4 | |||
| 5 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Algorithm::Combinatorics qw(combinations); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use List::Util qw(max); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | Poker::Score::Bring::Low - Scoring system used in lowball Stud to decide which player starts the action. | ||
| 12 | |||
| 13 | =head1 VERSION | ||
| 14 | |||
| 15 | Version 0.12 | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | |||
| 20 | =head1 SYNOPSIS | ||
| 21 | |||
| 22 | See Poker::Score for code example. | ||
| 23 | |||
| 24 | =cut | ||
| 25 | |||
| 26 | |||
| 27 | 1 | extends 'Poker::Score::Bring::High'; | |
| 28 | |||
| 29 | 0 | ▶ | after _build_hands => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 30 | 0 | my $self = shift; | |
| 31 | 0 | $self->hands( [ reverse @{ $self->hands } ] ); | |
| 32 | 1 | }; | |
| 33 | |||
| 34 | =head1 AUTHOR | ||
| 35 | |||
| 36 | Nathaniel Graham, C<< <ngraham at cpan.org> >> | ||
| 37 | |||
| 38 | =head1 LICENSE AND COPYRIGHT | ||
| 39 | |||
| 40 | Copyright 2016 Nathaniel Graham. | ||
| 41 | |||
| 42 | This program is free software; you can redistribute it and/or modify it | ||
| 43 | under the terms of the the Artistic License (2.0). You may obtain a | ||
| 44 | copy of the full license at: | ||
| 45 | |||
| 46 | L<http://www.perlfoundation.org/artistic_license_2_0> | ||
| 47 | |||
| 48 | =cut | ||
| 49 | |||
| 50 | 1 | 1; | |