Skip to content

Commit

Permalink
Force flush of engine stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Feb 15, 2015
1 parent c886ce8 commit ac0c2e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chess/uci.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ def __init__(self, process):
def _send(self, buf):
print(">>>", buf.rstrip()) # XXX
self.process.stdin.write(buf)
self.process.stdin.flush()

def _received(self, buf):
print("<<<", buf) # XXX
Expand Down

0 comments on commit ac0c2e9

Please sign in to comment.