diff options
author | doy <doy@tozt.net> | 2009-01-25 02:22:52 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-01-25 02:22:52 -0500 |
commit | d9eeef50ec74526248551a80dc9df665f22f1059 (patch) | |
tree | 586615dce0eefc65907f62db159aa485674b7a26 /lib/Bot/Games/Game/24.pm | |
parent | 8a875ee303a3533011c7e0d5326de86d6ffdc5ea (diff) | |
download | bot-games-d9eeef50ec74526248551a80dc9df665f22f1059.tar.gz bot-games-d9eeef50ec74526248551a80dc9df665f22f1059.zip |
allow games to return '' from their turn method without the base class whining
Diffstat (limited to 'lib/Bot/Games/Game/24.pm')
-rw-r--r-- | lib/Bot/Games/Game/24.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bot/Games/Game/24.pm b/lib/Bot/Games/Game/24.pm index 1e339e0..c049865 100644 --- a/lib/Bot/Games/Game/24.pm +++ b/lib/Bot/Games/Game/24.pm @@ -36,7 +36,7 @@ augment turn => sub { my $eval = $self->evaluate($expr); if ($eval == 24) { $self->is_over("$player wins!"); - return; + return ''; } else { return $eval; |