1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-12 12:09:14 +00:00
BadFish/src
Joost VandeVondele 04a320666e Change handling the special case of a single legal move.
Using no searching time in case of a single legal move is not beneficial from
a strength point of view, and this special case can be easily removed:

STC:
LLR: 2.93 (-2.94,2.94) {-1.25,0.25}
Total: 22472 W: 2458 L: 2357 D: 17657
Ptnml(0-2): 106, 1733, 7453, 1842, 102
https://tests.stockfishchess.org/tests/view/5f926cbc81eda81bd78cb6df

LTC:
LLR: 2.94 (-2.94,2.94) {-0.75,0.25}
Total: 37880 W: 1736 L: 1682 D: 34462
Ptnml(0-2): 22, 1392, 16057, 1448, 21
https://tests.stockfishchess.org/tests/view/5f92a26081eda81bd78cb6fe

The advantage of using the normal time management for a single legal move is that scores
reported for that move are reasonable, not searching leads to artifacts during games
(see e.g. https://tcec-chess.com/#div=sf&game=96&season=19)

The disadvantage of using normal time management of a single legal move is that thinking
times can be unnaturally long, making it 'painful to watch' in online tournaments.

This patch uses normal time management, but caps the used time to 500ms.
This should lead to reasonable scores, and be hardly perceptible.

closes https://github.com/official-stockfish/Stockfish/pull/3195
closes https://github.com/official-stockfish/Stockfish/pull/3183

variant of a patch suggested by SFisGOD

No functional change.
2020-11-07 16:48:02 +01:00
..
incbin Embed default net, and simplify using non-default nets 2020-08-29 21:56:00 +02:00
nnue Manually align arrays on the stack 2020-11-04 19:52:42 +01:00
syzygy Only use MADV_RANDOM if defined 2020-09-02 07:32:10 +02:00
benchmark.cpp Always re-enable NNUE after "bench". 2020-09-08 22:53:50 +02:00
bitbase.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
bitboard.cpp Small trivial cleanups 2020-08-23 01:53:41 +02:00
bitboard.h Small trivial cleanups 2020-08-23 01:53:41 +02:00
endgame.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
endgame.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
evaluate.cpp Elo Worth in King Danger 2020-11-02 19:41:17 +01:00
evaluate.h Update default net to nn-cb26f10b1fd9.nnue 2020-11-01 08:02:40 +01:00
main.cpp Small cleanups 12 2020-09-21 10:41:10 +02:00
Makefile Add net as dependency of config 2020-10-22 20:18:12 +02:00
material.cpp Small trivial cleanups 2020-08-23 01:53:41 +02:00
material.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
misc.cpp Suppress info strings before 'uci' 2020-09-25 17:44:14 +02:00
misc.h Manually align arrays on the stack 2020-11-04 19:52:42 +01:00
movegen.cpp Small trivial cleanups 2020-08-23 01:53:41 +02:00
movegen.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
movepick.cpp Do not skip non-recapture ttMove when in check 2020-10-28 23:40:37 +01:00
movepick.h Introduce movecount pruning for qsearch() 2020-08-23 23:27:03 +02:00
pawns.cpp Pawn Tuning 2020-10-05 19:01:46 +02:00
pawns.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
position.cpp Manually align arrays on the stack 2020-11-04 19:52:42 +01:00
position.h Remove EvalList 2020-08-26 07:11:26 +02:00
psqt.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
search.cpp Change handling the special case of a single legal move. 2020-11-07 16:48:02 +01:00
search.h Small cleanups 12 2020-09-21 10:41:10 +02:00
thread.cpp Small cleanups 12 2020-09-21 10:41:10 +02:00
thread.h Do more reductions for late quiet moves in case of consecutive fail highs. 2020-10-18 13:54:28 +02:00
thread_win32_osx.h Explicitly rely on pthreads if possible 2020-08-22 11:00:45 +02:00
timeman.cpp Reduce big time spikes by reducing PV re-searches. 2020-10-22 20:08:15 +02:00
timeman.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
tt.cpp Add large page support for NNUE weights and simplify TT mem management 2020-09-21 08:43:48 +02:00
tt.h Add large page support for NNUE weights and simplify TT mem management 2020-09-21 08:43:48 +02:00
tune.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
tune.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
types.h Manually align arrays on the stack 2020-11-04 19:52:42 +01:00
uci.cpp Small cleanups 12 2020-09-21 10:41:10 +02:00
uci.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
ucioption.cpp Small cleanups 12 2020-09-21 10:41:10 +02:00