This commit is contained in:
Auric Vente 2024-07-21 23:50:16 -06:00
parent 4c2a8edb7c
commit 377c725937
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ class Ants:
return Utils.random_name(names)
@staticmethod
def get_top_ant() -> tuple[Ant, int] | None:
def get_top() -> tuple[Ant, int] | None:
top = None
top_score = 0

View File

@ -269,7 +269,7 @@ class Game:
text.append("Hatch some ants")
else:
text.append(f"Ants:{nb}{len(Ants.ants)}")
top = Ants.get_top_ant()
top = Ants.get_top()
if top:
ant = top[0]