Skip to content

Commit

Permalink
Merge pull request #1 from retrowaver/ponder_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
retrowaver authored Apr 24, 2019
2 parents ae34a4b + 51dba6f commit a435657
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 a435657

Please sign in to comment.