Has anyone got the chess.engine function in Python Chess to work?
Mine gets here: chess.engine.SimpleEngine.popen_uci("stockfish")
finds stockfish in its directory, and then pumps out a load of internal errors and breaks before returning.
# code as per Python Chess example code ....
import chess
import chess.engine
engine = chess.engine.SimpleEngine.popen_uci("stockfish")
board = chess.Board()
while not board.is_game_over():
result = engine.play(board, chess.engine.Limit(time=0.100))
board.push(result.move)
engine.quit()
chrisw wrote: ↑Sun Feb 17, 2019 1:25 pm
Has anyone got the chess.engine function in Python Chess to work?
Mine gets here: chess.engine.SimpleEngine.popen_uci("stockfish")
finds stockfish in its directory, and then pumps out a load of internal errors and breaks before returning.
chrisw wrote: ↑Sun Feb 17, 2019 1:25 pm
Has anyone got the chess.engine function in Python Chess to work?
Mine gets here: chess.engine.SimpleEngine.popen_uci("stockfish")
finds stockfish in its directory, and then pumps out a load of internal errors and breaks before returning.