Fastchess output options

Discussion of chess software programming and technical issues.

Moderator: Ras

Necromancer
Posts: 40
Joined: Wed Nov 23, 2016 1:30 am
Location: Brazil

Fastchess output options

Post by Necromancer »

I'm using https://github.com/Disservin/fastchess to test my engines, but I couldn't figure out how to not print the game PGNs to the console. I see no such option in their docs. Does anyone know how to do that?

My command is

Code: Select all

fastchess.exe ^
-engine cmd="engines\engineA.exe" name=EngineA ^
-engine cmd="engines\engineB.exe" name=EngineB ^
-each tc=10+0.1 timemargin=1000 -rounds 5000 -repeat -concurrency 5 ^
-resign movecount=3 score=700 -draw movenumber=34 movecount=10 score=20 ^
-pgnout file=games.pgn ^
-openings file=books/UHO_Lichess_4852_v1.epd format=epd order=random ^
-scoreinterval 50 ^
-sprt elo0=0 elo1=5 alpha=0.05 beta=0.05
Thanks!
cpeters
Posts: 225
Joined: Wed Feb 17, 2021 7:44 pm
Full name: Christian Petersen

Re: Fastchess output options

Post by cpeters »

Code: Select all

-pgnout file=/dev/null
cpeters
Posts: 225
Joined: Wed Feb 17, 2021 7:44 pm
Full name: Christian Petersen

Re: Fastchess output options

Post by cpeters »

Code: Select all

fastchess.exe
I just did read it know...; however there should be an equivalent to a digital unix-nirwana in windows.
Ajaja
Posts: 6
Joined: Sun Jul 25, 2021 5:20 pm
Full name: Alex Frost

Re: Fastchess output options

Post by Ajaja »

It does not print PGNs to the console:

Code: Select all

D:\Games\Chess\Fastchess>fastchess.exe -engine cmd="D:\Games\Chess\Engines\stockfish.exe" name=EngineA -engine cmd="D:\Games\Chess\Engines\reckless.exe" name=EngineB -each tc=10+0.1 timemargin=1000 -rounds 5000 -repeat -concurrency 5 -resign movecount=3 score=700 -draw movenumber=34 movecount=10 score=20 -pgnout file=games.pgn -openings file=D:\Games\Chess\OpeningBooks\official-stockfish\UHO_Lichess_4852_v1.epd format=epd order=random -scoreinterval 50 -sprt elo0=0 elo1=5 alpha=0.05 beta=0.05
Indexing opening suite...
Started game 1 of 10000 (EngineA vs EngineB)
Started game 2 of 10000 (EngineB vs EngineA)
Started game 3 of 10000 (EngineA vs EngineB)
Started game 4 of 10000 (EngineB vs EngineA)
Started game 5 of 10000 (EngineA vs EngineB)
Finished game 3 (EngineA vs EngineB): 1-0 {White wins by adjudication}
Started game 6 of 10000 (EngineB vs EngineA)
Finished game 4 (EngineB vs EngineA): 1/2-1/2 {Draw by adjudication}
Started game 7 of 10000 (EngineA vs EngineB)
Finished game 1 (EngineA vs EngineB): 1-0 {White wins by adjudication}
Started game 8 of 10000 (EngineB vs EngineA)
Finished game 5 (EngineA vs EngineB): 1/2-1/2 {Draw by adjudication}
Started game 9 of 10000 (EngineA vs EngineB)
Finished game 2 (EngineB vs EngineA): 1/2-1/2 {Draw by adjudication}
Started game 10 of 10000 (EngineB vs EngineA)
Finished game 6 (EngineB vs EngineA): 1-0 {White wins by adjudication}
Started game 11 of 10000 (EngineA vs EngineB)
Finished game 8 (EngineB vs EngineA): 1/2-1/2 {Draw by adjudication}
Started game 12 of 10000 (EngineB vs EngineA)
Finished game 7 (EngineA vs EngineB): 1/2-1/2 {Draw by insufficient mating material}
Started game 13 of 10000 (EngineA vs EngineB)
Finished game 9 (EngineA vs EngineB): 1/2-1/2 {Draw by adjudication}
Started game 14 of 10000 (EngineB vs EngineA)
Finished game 10 (EngineB vs EngineA): 1-0 {White wins by adjudication}
Started game 15 of 10000 (EngineA vs EngineB)
Finished game 11 (EngineA vs EngineB): 1-0 {White wins by adjudication}
Started game 16 of 10000 (EngineB vs EngineA)
Finished game 13 (EngineA vs EngineB): 1/2-1/2 {Draw by adjudication}
Started game 17 of 10000 (EngineA vs EngineB)
Finished game 12 (EngineB vs EngineA): 1/2-1/2 {Draw by adjudication}
Started game 18 of 10000 (EngineB vs EngineA)
...
cpeters
Posts: 225
Joined: Wed Feb 17, 2021 7:44 pm
Full name: Christian Petersen

Re: Fastchess output options

Post by cpeters »

Ahh - I misunderstood perhaps/don't know for sure what they want - maybe an option like 'quiet'..

One could do just

Code: Select all

./fastchess -options -options >somefile
for silence.
Necromancer
Posts: 40
Joined: Wed Nov 23, 2016 1:30 am
Location: Brazil

Re: Fastchess output options

Post by Necromancer »

Sorry, its' not exactly the pgns it outputs:

Code: Select all

Started game 2858 of 10000 (Tunguska2.0 vs TunguskaCounter)
Warning; PV continues after threefold repetition - move e1h4 from Tunguska2.0
Info; info depth 12 score cp 0 nodes 0 time 1 pv g3f4 d2e1 a7a2 e1h4 h2g1 h4e1 g1h2 e1h4 h2g1 h4e1 g1h2 e1h4
Position; fen r1bq1rk1/pppp1ppp/3b1n2/8/2BpP3/3P4/PPPN1PPP/R1BQ1RK1 w - - 5 8
Moves; d2f3 d6c5 e4e5 d7d5 c4b3 f6e8 c2c3 c8g4 h2h3 g4f3 d1f3 c7c6 c3c4 e8c7 f3g3 f8e8 c1h6 c5f8 f2f4 d5c4 b3c4 c7d5 f4f5 g8h8 h6g5 f7f6 c4d5 c6d5 g5f4 d8b6 e5e6 b6b2 a1b1 b2a2 b1b7 e8e7 b7e7 f8e7 f1c1 a8e8 g3f3 a7a5 f3h5 e8f8 c1c7 a2b1 g1h2 b1b4 h5f3 f8d8 h3h4 a5a4 h4h5 a4a3 h5h6 g7g5 f5g6 h7g6 f4g3 a3a2 c7a7 b4d2
Warning; PV continues after threefold repetition - move e1h4 from Tunguska2.0
Info; info depth 13 score cp 0 nodes 0 time 1 pv g3f4 d2e1 a7a2 e1h4 h2g1 h4e1 g1h2 e1h4 h2g1 h4e1 g1h2 e1h4 h2g1
Position; fen r1bq1rk1/pppp1ppp/3b1n2/8/2BpP3/3P4/PPPN1PPP/R1BQ1RK1 w - - 5 8
Moves; d2f3 d6c5 e4e5 d7d5 c4b3 f6e8 c2c3 c8g4 h2h3 g4f3 d1f3 c7c6 c3c4 e8c7 f3g3 f8e8 c1h6 c5f8 f2f4 d5c4 b3c4 c7d5 f4f5 g8h8 h6g5 f7f6 c4d5 c6d5 g5f4 d8b6 e5e6 b6b2 a1b1 b2a2 b1b7 e8e7 b7e7 f8e7 f1c1 a8e8 g3f3 a7a5 f3h5 e8f8 c1c7 a2b1 g1h2 b1b4 h5f3 f8d8 h3h4 a5a4 h4h5 a4a3 h5h6 g7g5 f5g6 h7g6 f4g3 a3a2 c7a7 b4d2
...
I want to silence the above but keep the sprt report:

Code: Select all

Results of TunguskaCounter vs Tunguska2.0 (10+0.1, 1t, 256MB, UHO_Lichess_4852_v1.epd):
Elo: 17.90 +/- 8.25, nElo: 27.71 +/- 12.74
LOS: 100.00 %, DrawRatio: 42.93 %, PairsRatio: 1.34
Games: 2856, Wins: 888, Losses: 741, Draws: 1227, Points: 1501.5 (52.57 %)
Ptnml(0-2): [50, 299, 613, 386, 80], WL/DD Ratio: 1.26
LLR: 2.96 (100.6%) (-2.94, 2.94) [0.00, 5.00]
cpeters
Posts: 225
Joined: Wed Feb 17, 2021 7:44 pm
Full name: Christian Petersen

Re: Fastchess output options

Post by cpeters »

Well, I'd direct the output in a file and after finishing read the last lines (with tail (or other utility for windows then)) of it...