我试着在我的Raspberry Pi 4上使用Stock Fish,我试过使用64位版本(有点激进),但是没有用。我得到的只是这个错误:
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/pi/stockfish-10-
linux/Linux/stockfish_10_x64'
这是我的程序:
from stockfish import Stockfish
# you should install the stockfish engine in your operating system globally or specify path to binary file in class constructor
stockfish = Stockfish('/home/pi/stockfish-10-linux/Linux/stockfish_10_x64')
# set position by moves:
stockfish.set_position(['e2e4', 'e7e6'])
# set position by FEN:
stockfish.set_fen_position("rnbqkbnr/pppp1ppp/4p3/8/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2")
print(stockfish.get_best_move()) # d2d4
print(stockfish.is_move_correct('a2a3')) # True
# get last move info:
print(stockfish.info)
# e.g. 'info depth 2 seldepth 3 multipv 1 score mate -1 nodes 11 nps 5500 tbhits 0 time 2 pv h2g1 h4g3'
32位操作系统有现货鱼吗
目前没有回答
相关问题 更多 >
编程相关推荐