From 1ee346f9e776a58329b2354938b7a01f905dba39 Mon Sep 17 00:00:00 2001 From: ajuvercr Date: Thu, 2 Apr 2020 22:21:40 +0200 Subject: [PATCH] always print newlines --- backend/static/bot/simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/static/bot/simple.py b/backend/static/bot/simple.py index 04becaf..4c0e199 100644 --- a/backend/static/bot/simple.py +++ b/backend/static/bot/simple.py @@ -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: