From db78a855d4703acf5b9a8e205c23e85b13c7ff81 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Fri, 19 Jul 2024 00:59:34 -0600 Subject: [PATCH] Mods --- cromulant/ants.py | 2 +- cromulant/game.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cromulant/ants.py b/cromulant/ants.py index a1c4ec7..9772fe5 100644 --- a/cromulant/ants.py +++ b/cromulant/ants.py @@ -17,8 +17,8 @@ class Ant: self.updated = now self.name = "" self.status = "" - self.hits = 0 self.triumph = 0 + self.hits = 0 self.color: tuple[int, int, int] def to_dict(self) -> dict[str, Any]: diff --git a/cromulant/game.py b/cromulant/game.py index 5094cfc..677801b 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -183,13 +183,13 @@ class Game: hits = Ants.most_hits() - if hits: - text.append(f"Most{nb}Hits:{nb}{hits.name}") - triumph = Ants.most_triumph() if triumph: - text.append(f"Most{nb}Triumph:{nb}{triumph.name}") + text.append(f"Triumph:{nb}{triumph.name}") + + if hits: + text.append(f"Hits:{nb}{hits.name}") Window.info.setText(" | ".join(text)) Window.info.adjustSize()