syzygy1 / Cfish

C port of Stockfish
GNU General Public License v3.0
137 stars 58 forks source link

Unexpected move from "Cfish" #43

Open verccety opened 6 years ago

verccety commented 6 years ago

Sometimes I'm getting the following warning from cutechess-cli What could it be?

cutechess log played games

syzygy1 commented 6 years ago

I have no idea what this could be. If Cfish outputs an illegal move or a move at the wrong time, I would expect it to lose the game, but there don't seem to be strange losses in your output. And cutechess-cli isn't telling us exactly which games and at which moves the problem occurs, so it is difficult to know what is going on.

Can anyone reproduce this?

verccety commented 6 years ago

This behavior still occurs on a different machine with recent version

cutechess-cli log PGN

RomeoA23 commented 6 years ago

@gogamoga1 how many cores/threads in your machine? And with what concurrency was played this matches?

@syzygy1 i can confirm this issue. One guy have same message: "Unexpected move from "Cfish".

====== UPD: this hapened on 2 different PC's. On 4 core machine with concurrency 3.

RomeoA23 commented 6 years ago

@syzygy1

Stockfish 9++ - it is renamed Cfish...

une

Une.txt

========= From cutechess SRC's:

https://github.com/cutechess/cutechess/blob/6ec1b44ef41940ab7d6eae2bed0ffcf4b2824683/projects/lib/src/uciengine.cpp#L638

screenshot_760

MichaelB7 commented 3 years ago

I believe you may see this on occasion when a game is adjudicated and cfish sends the move at just about the same time so that cutechess thinks the game is already over. As long as you are having no significant errors and matches are being played out to completion as they should be.. you may consider starting a match with errors to be redirected to null

C:\Program Files (x86)\cutechess>cutechess-cli.exe -repeat -rounds 1000 -concurrency 4 -draw movenumber=40 movecount=5 score=5 -resign movecount=4 score=650 -openings file=Hert500.pgn format=pgn -pgnout games.pgn -engine cmd=cfish.exe name="Cfish" -engine cmd=BrainFish_180217_x64_bmi2.exe name="Brainfish" option."Large Pages"=true -each proto=uci option.Threads=1 option.Hash=512 tc=300+3 >/dev/null ( if you wish that error message to be hidden)

syzygy1 commented 3 years ago

I would expect cutechess to check whether the game should be adjudicated before it tells the engine to start the search.