Bots: navne nok til 10 spillere i Tegn og Gæt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -228,7 +228,7 @@ async def main():
|
||||
print(f"Rum {code}")
|
||||
ws_base = args.base.replace("http", "ws", 1)
|
||||
seen, done = [], asyncio.Event()
|
||||
names = ["Asger", "Sus", "Jørn", "Mette", "Kaj", "Bodil", "Ib", "Lis"][: args.players]
|
||||
names = ["Asger", "Sus", "Jørn", "Mette", "Kaj", "Bodil", "Ib", "Lis", "Vagn", "Inge"][: args.players] # Tegn og Gæt: op til 10
|
||||
tasks = [asyncio.create_task(host(ws_base, code, seen, done))]
|
||||
await asyncio.sleep(0.2)
|
||||
for n in names:
|
||||
@@ -262,7 +262,8 @@ async def join_existing(args, rng):
|
||||
"""Bots fylder op i dit eget spil. De starter ikke spillet (det gør VIP'en, altså dig)."""
|
||||
ws_base = args.base.replace("http", "ws", 1)
|
||||
code, done = args.code.upper(), asyncio.Event()
|
||||
names = ["Bot-Bodil", "Bot-Kaj", "Bot-Lis", "Bot-Ib", "Bot-Mette", "Bot-Jørn", "Bot-Sus"][: args.players]
|
||||
names = ["Bot-Bodil", "Bot-Kaj", "Bot-Lis", "Bot-Ib", "Bot-Mette", "Bot-Jørn", "Bot-Sus", "Bot-Vagn",
|
||||
"Bot-Inge"][: args.players]
|
||||
tasks = [asyncio.create_task(player(ws_base, code, n, 99, done, rng, stop_at_final=True, game=args.game)) for n in names]
|
||||
print(f"{len(names)} bots joiner {code}. Start spillet fra din telefon eller storskærmen.")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user