The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Games::Bowling::Scorecard::Frame::TenPinTenth - ten pin's weird 10th frame

VERSION

version 0.106

DESCRIPTION

The tenth frame of ten pin bowling is weird. If you bowl a strike or spare, you're allowed to throw balls to complete the frame's scoring. The extra balls are only counted for bonus points. In other words, if the first two balls in the tenth frame are strikes, the second ball is not counted as a "pending" strike. If this is confusing, don't worry! That's why you're using this module.

PERL VERSION

This module should work on any version of perl still receiving updates from the Perl 5 Porters. This means it should work on any version of perl released in the last two to three years. (That is, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.)

Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.

METHODS

is_done

The tenth frame is done if: (a) three balls have been bowled or (b) two balls have been bowled, totalling less than ten.

is_pending

The tenth frame is never pending. Once it's done, its score is final.

roll_ok

The tenth frame's roll_ok is identical to the standard roll_ok, but replaces the "can't total more than 10" rule with a more complex rule.

AUTHOR

Ricardo SIGNES <cpan@semiotic.systems>

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by Ricardo SIGNES.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.