always print newlines

This commit is contained in:
ajuvercr 2020-04-02 22:21:40 +02:00
parent 390d4a01ab
commit 1ee346f9e7

View file

@ -2,7 +2,7 @@ import sys, json, random
def move(command):
record = { 'moves': [command] }
json.dump(record, sys.stdout)
print(json.dumps(record))
sys.stdout.flush()
for line in sys.stdin: