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.104

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.

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 <rjbs@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 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.