Compile modified Stockfish

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
Nordlandia
Posts: 2821
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Compile modified Stockfish

Post by Nordlandia »

I want to check if permanent brain can be used against SF as handicap (considering SF very strong) ponder handicap may offset strength difference against K and H respectively.

Stockfish can't think during opponents move while the villain can. This is ponder handicap.

In Fritz gui i can't select which engine to use ponder so temporary solution is to deactivate ponder natively inside SF as an custom compile just for experiment.

Can anyone compile stockfish from source with this modification:

uci.cpp (L133)

[ else if (token == "ponder") ponderMode = true;]

Into [ else if (token == "ponder") ponderMode = false;]

Alternatively remove whole 133 string.

https://groups.google.com/forum/#!topic ... ErttX22j0o
BeyondCritics
Posts: 396
Joined: Sat May 05, 2012 2:48 pm
Full name: Oliver Roese

Re: Compile modified Stockfish

Post by BeyondCritics »

Nordlandia wrote:I want to check if permanent brain can be used against SF as handicap (considering SF very strong) ponder handicap may offset strength difference against K and H respectively.

Stockfish can't think during opponents move while the villain can. This is ponder handicap.

In Fritz gui i can't select which engine to use ponder so temporary solution is to deactivate ponder natively inside SF as an custom compile just for experiment.

Can anyone compile stockfish from source with this modification:

uci.cpp (L133)

[ else if (token == "ponder") ponderMode = true;]

Into [ else if (token == "ponder") ponderMode = false;]

Alternatively remove whole 133 string.

https://groups.google.com/forum/#!topic ... ErttX22j0o
Don't get me wrong, but his won't work for several reasons, since you are corrupting the protocol.
The problem is, that in ponder mode stockfish would after moving send the move it attempts to ponder on (https://github.com/official-stockfish/S ... h.cpp#L280) and and then just do that. If the opponent would later make that move, the gui would send the "ponder hit" message and expect the engine to simply continue the search (https://github.com/official-stockfish/S ... i.cpp#L220).
If you just disable pondering, the gui would miss the ponder move and stockfish could miss occasionally the "go" command.
So next suggestion please :wink: