Skip to content

Commit

Permalink
Closes iamjarret#15
Browse files Browse the repository at this point in the history
  • Loading branch information
retrowaver committed Apr 13, 2019
1 parent ae34a4b commit 51dba6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pystockfish.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def bestmove(self):
if split_text[0] == "info":
last_info = Engine._bestmove_get_info(text)
if split_text[0] == "bestmove":
ponder = None if len(split_text[0]) < 3 else split_text[3]
ponder = None if 3 not in split_text else split_text[3]
return {'move': split_text[1],
'ponder': ponder,
'info': last_info}
Expand Down

0 comments on commit 51dba6f

Please sign in to comment.