From a742c47650f5a23074d0d8ab102b3882e18b6335 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Sun, 21 Jul 2024 09:13:04 -0600 Subject: [PATCH] Mods --- cromulant/game.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/cromulant/game.py b/cromulant/game.py index c6cd908..3c5c571 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -157,19 +157,22 @@ class Game: min_num = 0 max_num = 12 + no_repeat = [0] num = random.randint(min_num, max_num) - if num == min_num: - if Game.last_update == min_num: + if num in no_repeat: + if Game.last_update == num: num = max_num - else: - Ants.merge() - return + + Game.last_update = num + + if num == min_num: + Ants.merge() + return status = "" method = "normal" - Game.last_update = num if num == 1: ant.triumph += 1