diff options
Diffstat (limited to 'lib/Bot/Games/Game/24.pm')
-rw-r--r-- | lib/Bot/Games/Game/24.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Bot/Games/Game/24.pm b/lib/Bot/Games/Game/24.pm index b56db41..a353900 100644 --- a/lib/Bot/Games/Game/24.pm +++ b/lib/Bot/Games/Game/24.pm @@ -83,6 +83,7 @@ sub generate_24 { $n1 *= $val; $n2 = $n1 / $val; } + redo if $n1 >= 1000 || $n2 >= 1000; splice @nums, $index, 1, ('(', $n1, $op, $n2, ')'); } pop @nums; |