From e6ab190082d1cb0afaafa13629909eeef1f7671f Mon Sep 17 00:00:00 2001 From: Valeriy Huz Date: Tue, 1 Jul 2014 13:39:36 +0300 Subject: [PATCH] Update pystockfish.py We must flush stdin. --- pystockfish.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pystockfish.py b/pystockfish.py index dba4420..78eddd5 100644 --- a/pystockfish.py +++ b/pystockfish.py @@ -166,6 +166,7 @@ def newgame(self): def put(self, command): self.stdin.write(command+'\n') + self.stdin.flush() def flush(self): self.stdout.flush()