python - 是否有适用于 32 位操作系统的 Stock Fish 版本?
问题描述
我正在尝试在我的 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 位操作系统的 Stock Fish?
解决方案
推荐阅读
- python - Python - 按最多和最少的元音对复制的列表进行排序
- react-native - 删除导航到不同堆栈的先前堆栈
- python - 字典的值依赖于/链接到 Python 中另一个字典的值
- json - ReactJS 和 Material UI TreeView:我可以使用 JSON/对象数组来填充 TreeView 吗?
- java - 命令行中的 Java Flight Recorder (JFR):[jfr] [ERROR] [1014.291] 关闭时无法删除存储库
- apache-kafka - 如何使用 Apache NIFI 在 Kafka 集群中分发数据
- javascript - 在元素点击事件之前触发正文点击事件
- javascript - SpeechSynthesis 在 iFrame 加载时自行恢复,在 Firefox 浏览器中。这是 SpeechSynthesis 的限制吗?
- excel - 引用与图表表关联的 Excel VBA 函数
- javascript - 是否可以在图表中设置抽动之间的间隔应该有多大?