Skip to content

Instantly share code, notes, and snippets.

@jackalsh
Created December 14, 2015 18:10
Show Gist options
  • Save jackalsh/00c68e618c560b472f72 to your computer and use it in GitHub Desktop.
Save jackalsh/00c68e618c560b472f72 to your computer and use it in GitHub Desktop.
for index, fen in enumerate(fens):
time.sleep(50/1000) # Magic!
engine.isready()
engine.ucinewgame()
board = chess.Board(fen)
engine.isready()
engine.position(board) #copy.deepcopy(board) also tried
# UCI 'isready' followed by 'go' command
pv,score = getScore(engine, checkTime);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment