使用github项目BookBuilder的问题

问题描述 投票:0回答:1

我在 github 上发现了这个很棒的项目,名为 book builder (https://github.com/raccrompton/BookBuilder),但是我一直在努力让它工作。 github上有两个选项如何使用它和一个视频教程,但它似乎已经过时了。

我尝试过的: 首先,我尝试遵循第一个选项(如果您不想触及任何代码选项)。 我启动了 Windows 并下载了应用程序,更改了设置,它加载了设置,加载了引擎,开始工作。然后几秒钟后,正在运行的窗口就消失了。 我运行的 Bookbuilder.exe 应用程序被删除,引擎(在本例中称为 stockfishwin15.exe)也被删除,在 Bookbuilderwin 文件夹中仅留下 config.yaml + 可能是 BookA 和 BookB,它们在下载时就在那里.

然后我尝试了第二个选项,我首先注意到的是没有配置。我已经安装了 Visual Studio 和 python,在 manjaro 上我成功运行了命令 pip3 install -rrequirements.txt。然后我必须添加引擎,但我意识到我不能,因为配置文件不存在,所以我从 Windows 应用程序的文件夹中复制它,尝试设置它下载 Linux 的 stockfish,当我运行它时没有任何反应,它完成但没有输出。

我也在 Windows 上尝试了第二个选项,但是 pip install 在那里不起作用,我宁愿在 manjaro 上运行它,因为它更快。

This is the folder

我配置的 config.yaml (我真的不知道将最后一个值设置为什么,但我认为那里应该没问题。):

#BOOK SETTINGS
OPENINGBOOK: [{"Name": "Queens pawn", "pgn": "1. d4"}]
#add the starting point PGNs you want to create repertoires for, with starting point pgns.
#The format for multiple PGNs and chapters looks like this: [{"Name": "YourBlackOpeningName, "pgn": "1. e4 e5"},{"Name": "YourWhiteOpeningName2", "pgn": "1. e4 e5 2. f4"}]
LONGTOSHORT: 1
#if you want the chapter ordered from long lines to short lines, instead of short to long, change to "1". Else 0.


#DATABASE SETTINGS
VARIANT: 'standard' 
#Variants to include in the analysis
SPEEDS: ['rapid']
#comma separated Formats to include in the analysis ['blitz,rapid,classical,correspondence'] 
RATINGS: ['1600,1800,2000,2200']
#Ratings of the players to include in the analysis ['1600,1800,2000,2200,2500'] 
MOVES: 10
#The number of most played moves to search over for the best move (minimum 5)

#MOVE SELECTION SETTINGS
DEPTHLIKELIHOOD: 0.001
#IF YOU WANT MORE / DEEPER LINES, DECREASE THIS NUMBER. 0.01 = responses for moves played every 1 in 100 games, 0.001 every 1 in 1000 etc.
#this controls how deep moves and lines are generated. The smaller the number the deeper the lines. Once cumulative line likelihood reaches this probability threshold, no futher continuations will be added (in percentage so 0.0025 = 0.25%)
ALPHA: 0.0001
#The larger this number the more likely we are to select moves with less data. This is the confidence interval alpha (EG 0.05 = 95% CI), for deciding the lower bounds of how good a move's winrate is.
MINPLAYRATE: 0.001
#minimum probability of our move being played in a position to be considered as a 'best move' candidate, as a percentage (0.05= 5%)
MINGAMES: 10 
#games where our moves were played this or less than this will be discarded (unless top engine move) (25 = 25 games).
CONTINUATIONGAMES: 10 
# games where moves played this or less than this will not be considered a valid opponent continuation (ie we don't want to be inferring cumulative probability or likely lines from tiny amounts of games/1 game)
DRAWSAREHALF: 1
#if you want to count draws as half a win (0.5 points), for the win rate calculation, select 1. Else 0. With 0 draws will count as as losses for the win rate calculation.


#ENGINE SETTINGS
ENGINEPATH: 'C:\home\admin_\Desktop\BookBuilder-main\stockfish_15.1_linux_x64'
#the filepath where the engine is stored on your computer, so it can be accessed.
#It should be wrapped in quotes (eg 'path/path'), and end in the actual engine file (not the folder), so 'C:\Folder\Chess\BookBuilder-main\stockfish15.exe' on Windows or '/Users/User/Downloads/BookBuilder-main/stockfish' on Mac, for example
#Some users reported errors if the engine has _ in the file name.
CAREABOUTENGINE: 1
#care about engine eval of position or engine finishing = 1, dont care = 0. If this is 0 then no engine functionality will work.
ENGINEDEPTH: 25
#RECOMMENDED minimum 20+ ideally 30+ for stable evaluations in the opening phase.
#what depth the engine should evaluate best moves. the higher the depth the longer the evaluation will take.
ENGINEFINISH: 1
#if we want the engine to complete lines upto the cumulative likelihood, where where data from our perspective doesn't meet minimum criteria. For this kind of finishing, 1. Otherwise 0, and lines will end where there's no good human data for one player.
SOUNDNESSLIMIT: -99
#recommended not closer to 0 than -50 for White, or - 80 for Black repertoires. Engine evaluations swing a lot in the opening.
#maximum centipawns we are willing to be down in engine eval, provided the winrate is better (-300 = losing by 3 pawns in eval). We never give up a forced mate, however.
MOVELOSSLIMIT: -99
#recommended not closer to 0 than -50. Engine evaluations swing a lot in the opening.
#maximum eval centipawns we are willing to lose vs engine's best move to play a higher winrate move. We never give up a forced mate, however.
IGNORELOSSLIMIT: 299
#centipawns advantage above which we won't care if we play a move that hits our loss limit, if it has a higher win rate (is easier to win)
ENGINETHREADS: 1
#Increase this number to speed the engine up. It's how many threads you want the engine to use (check your comp and set 1 if unsure)
#for reference my safemax is 20
ENGINEHASH: 3072
#Increase this number to speed the engine up. It's how much hash (RAM) you want the engine to use (check your comp and set to 16 if unsure)
#for reference my safe max is 12288

# Change this to true/false depending if you want to see detailed output in your terminal when running the program
PRINT_INFO_TO_CONSOLE: true
python windows github crash manjaro
1个回答
0
投票

您可以尝试在这里发布问题: https://github.com/lyskov/book_builder 您也可以尝试发送电子邮件至 [电子邮件受保护]

我很好奇解决方案。

© www.soinside.com 2019 - 2024. All rights reserved.