always print newlines
This commit is contained in:
parent
390d4a01ab
commit
1ee346f9e7
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue