This commit is contained in:
Auric Vente
2024-07-19 22:21:58 -06:00
parent 59b5c74846
commit 4ef0990516
3 changed files with 9 additions and 9 deletions

View File

@@ -86,11 +86,8 @@ class Utils:
return r, g, b
@staticmethod
def random_name() -> str:
from .ants import Ants
used = Ants.get_names()
filtered = [name for name in Utils.names if name not in used]
def random_name(ignore: list[str]) -> str:
filtered = [name for name in Utils.names if name not in ignore]
return random.choice(filtered)
@staticmethod