Skip to content

Commit 4e0cc29

Browse files
committed
random
1 parent 6492249 commit 4e0cc29

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

players/10-random/player_random.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ def main():
1414
if len(parts) >= 2:
1515
cards_file.write(parts[1] + "\n")
1616
if line.startswith("play?"):
17-
# move = random.choice(["hit", "stand"])
18-
# print(move, flush=True)
19-
print("hit", flush=True)
17+
move = random.choice(["hit", "stand"])
18+
print(move, flush=True)
2019
elif line.endswith("bet?"):
2120
print("1", flush=True)
2221
elif line.endswith("?"):

0 commit comments

Comments
 (0)