Mods
This commit is contained in:
parent
4fc8eeb886
commit
199fa3f25d
|
@ -2,6 +2,7 @@ from __future__ import annotations
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import random
|
import random
|
||||||
|
import itertools
|
||||||
from typing import ClassVar, Any
|
from typing import ClassVar, Any
|
||||||
|
|
||||||
from .config import Config
|
from .config import Config
|
||||||
|
@ -259,9 +260,10 @@ class Ants:
|
||||||
|
|
||||||
name = ""
|
name = ""
|
||||||
names = Ants.get_names()
|
names = Ants.get_names()
|
||||||
|
combinations = list(itertools.product(words_1, words_2))
|
||||||
|
|
||||||
for _ in range(12):
|
for combo in combinations:
|
||||||
name = f"{random.choice(words_1)} {random.choice(words_2)}"
|
name = f"{combo[0]} {combo[1]}"
|
||||||
|
|
||||||
if (name == ant_1.name) or (name == ant_2.name):
|
if (name == ant_1.name) or (name == ant_2.name):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue