With the new cutechess-cli I am getting this in the CLI window:Ferdy wrote: ↑Wed May 20, 2020 4:12 pmLets see some more logs.Laskos wrote: ↑Wed May 20, 2020 12:20 pmFerdy wrote: ↑Mon May 18, 2020 3:43 pm My batch file to run the match is like this."HeadsUp2" and "Stockfish 11" are registered in engine json file.Code: Select all
set CCC=D:\Chess\CuteChess-CLI\cutechess-cli.exe %CCC% --help >help.txt %CCC% --version set CON=3 set E1="HeadsUp2" set E2="Stockfish 11" set STARTOPENING=docs\Noomen_3move.pgn set OPEFORMAT=pgn set SAVE=games_tc15s100ms.pgn %CCC% ^ -tournament round-robin ^ -rounds 500 ^ -games 2 ^ -repeat ^ -openings file=%STARTOPENING% format=%OPEFORMAT% order=random plies=1000 start=1 policy=round ^ -concurrency %CON% ^ -pgnout %SAVE% fi ^ -wait 100 ^ -maxmoves 500 ^ -ratinginterval 4 ^ -engine conf=%E1% tc=0/15+0.1 stderr=err1.txt name="Lc0 v0.25.1/Stockfish 11" ^ -engine conf=%E2% tc=0/15+0.1 stderr=err2.txt
I would like you to add the stderr option like in the following:Then let's see what are in err1.txt and err2.txt files.Code: Select all
-engine conf=%E1% tc=0/15+0.1 stderr=err1.txt name="Lc0 v0.25.1/Stockfish 11" -engine conf=%E2% tc=0/15+0.1 stderr=err2.txt
Ferdy, sorry for the delay, I seem to not get anything in the "err" files (empty). Cutechess-CLI indexes the opening suite (2moves_v1.pgn) starts the first game then "disconnects" and ends. The PGN file reads as:
Code: Select all
[Event "?"] [Site "?"] [Date "2020.05.20"] [Round "1"] [White "Lc0 v0.25.1/Stockfish 11"] [Black "SF_11"] [Result "0-1"] [FEN "r1bqkbnr/pppppp1p/n7/6p1/6P1/7P/PPPPPP2/RNBQKBNR w KQkq - 0 1"] [GameDuration "00:00:00"] [GameEndTime "2020-05-20T13:13:21.268 GTB Daylight Time"] [PlyCount "0"] [SetUp "1"] [Termination "abandoned"] [TimeControl "15+0.1"] {White disconnects} 0-1
"headsup" engine seems to run and after typing "UCI" it shows:
Code: Select all
uci id name HeadsUp 0.1 id author Ferdy info string engine1 is Lc0 v0.25.1+git.69105b4 info string engine2 is Stockfish 11 64 BMI2 uciok
To see the logs of engine itself, add the following options to each engine in the cfg file.
For Lc0For StockfishCode: Select all
LogFile = log_lc0.txt
or something like this.Code: Select all
Debug Log File = log_sf.txt
Note that the settings,Code: Select all
[ENGINE1] # First enginefile must be defined. Do not add quotes even if there is space in the path enginefile = D:/Chess/Engines/Lc0/lc0-v0.25.1-windows-cpu-openblas/lc0.exe # Set engine options WeightsFile = D:/Chess/Engines/Lc0/id/591226.pb.gz # Threads = 2 MinibatchSize = 8 MaxPrefetch = 0 NNCacheSize = 20000000 LogFile = log_lc0.txt [ENGINE2] # Second enginefile must be defined. Do not add quotes even if there is space in the path enginefile = D:/Chess/Engines/Stockfish/stockfish_11.exe # Set engine options Hash = 128 # Threads = 1 # SyzygyPath = D:/Chess/syzygy # SyzygyProbeLimit = 5 Debug Log File = log_sf.txt [HEADSUP OPTION] # Use engine1 if piece_value_switch and move_number_switch are both satisfied. # Q=9, R=5, B=3, N=3 # Total piece value excluding kings and pawns = 2 x 9 + 4 x 5 + 4 x 3 + 4 x 3 = 62 # Use engine1 if total piece value remaining is above piece_value_switch. # Default = 62 piece_value_switch = 24 # Use engine1 if move number is below move_number_switch. # Default = 0 move_number_switch = 0 # Default = false Log = true
only activates the 2nd engine or Stockfish in that case.Code: Select all
piece_value_switch = 24 move_number_switch = 0
So lets look the contents of log_sf.txt. This file can be found where the HeadsUp.exe is located.
To see the logging of cutechess-cli itself modify the command line to have -debug optionI did try the file 2moves_v1.pgn and HeadsUp has no problem with it.Code: Select all
cutechess-cli ... -debug >log_cutechess.txt ...
Note I am using cutechess-cli and cutechess-gui from here.
Code: Select all
Warning: Could not initialize player Lc0 v0.25.1/Stockfish 11:
Code: Select all
Indexing opening suite...
58 >Lc0 v0.25.1/Stockfish 11(0): uci
60 >SF_11(1): uci
78 <SF_11(1): Stockfish 11 64 BMI2 by T. Romstad, M. Costalba, J. Kiiski, G. Linscott
111 <SF_11(1): id name Stockfish 11 64 BMI2
111 <SF_11(1): id author T. Romstad, M. Costalba, J. Kiiski, G. Linscott
111 <SF_11(1): option name Debug Log File type string default
111 <SF_11(1): option name Contempt type spin default 24 min -100 max 100
112 <SF_11(1): option name Analysis Contempt type combo default Both var Off var White var Black var Both
112 <SF_11(1): option name Threads type spin default 1 min 1 max 512
112 <SF_11(1): option name Hash type spin default 16 min 1 max 131072
112 <SF_11(1): option name Clear Hash type button
113 <SF_11(1): option name Ponder type check default false
113 <SF_11(1): option name MultiPV type spin default 1 min 1 max 500
113 <SF_11(1): option name Skill Level type spin default 20 min 0 max 20
113 <SF_11(1): option name Move Overhead type spin default 30 min 0 max 5000
113 <SF_11(1): option name Minimum Thinking Time type spin default 20 min 0 max 5000
114 <SF_11(1): option name Slow Mover type spin default 84 min 10 max 1000
114 <SF_11(1): option name nodestime type spin default 0 min 0 max 10000
114 <SF_11(1): option name UCI_Chess960 type check default false
114 <SF_11(1): option name UCI_AnalyseMode type check default false
115 <SF_11(1): option name UCI_LimitStrength type check default false
115 <SF_11(1): option name UCI_Elo type spin default 1350 min 1350 max 2850
115 <SF_11(1): option name SyzygyPath type string default <empty>
115 <SF_11(1): option name SyzygyProbeDepth type spin default 1 min 1 max 100
115 <SF_11(1): option name Syzygy50MoveRule type check default true
116 <SF_11(1): option name SyzygyProbeLimit type spin default 7 min 0 max 7
116 <SF_11(1): uciok
116 >SF_11(1): setoption name Contempt value 0
116 >SF_11(1): setoption name Hash value 512
116 >SF_11(1): setoption name Move Overhead value 0
116 >SF_11(1): setoption name SyzygyPath value C:/syzygy9
116 >SF_11(1): setoption name Threads value 4
116 >SF_11(1): isready
311 <SF_11(1): info string Found 0 tablebases
462 <SF_11(1): readyok
3322 <Lc0 v0.25.1/Stockfish 11(0): headsup.cfg file is required to run HeadsUp! Exiting ...
Terminating process of engine Lc0 v0.25.1/Stockfish 11(0)
3421 >SF_11(1): isready
Finished match
3424 <SF_11(1): readyok
This I have in the json file, is it enough?
Code: Select all
{
"command" : "headsup",
"name" : "headsup",
"protocol": "uci"
},