We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6492249 commit 4e0cc29Copy full SHA for 4e0cc29
1 file changed
players/10-random/player_random.py
@@ -14,9 +14,8 @@ def main():
14
if len(parts) >= 2:
15
cards_file.write(parts[1] + "\n")
16
if line.startswith("play?"):
17
- # move = random.choice(["hit", "stand"])
18
- # print(move, flush=True)
19
- print("hit", flush=True)
+ move = random.choice(["hit", "stand"])
+ print(move, flush=True)
20
elif line.endswith("bet?"):
21
print("1", flush=True)
22
elif line.endswith("?"):
0 commit comments