summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/24.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bot/Games/Game/24.pm')
-rw-r--r--lib/Bot/Games/Game/24.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Bot/Games/Game/24.pm b/lib/Bot/Games/Game/24.pm
index e8790f4..b5f50ad 100644
--- a/lib/Bot/Games/Game/24.pm
+++ b/lib/Bot/Games/Game/24.pm
@@ -77,6 +77,7 @@ sub generate_24 {
$n1 *= $val;
$n2 = $n1 / $val;
}
+ redo if $n1 >= 100 || $n2 >= 100;
splice @nums, $index, 1, ('(', $n1, $op, $n2, ')');
}
pop @nums;