1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00
BadFish/src
Michael Chaly acb0d204d5 Simplify stats assignment for Pv nodes
This patch is a simplification of my recent elo gainer.
Logically the Elo gainer didn't make much sense and this patch simplifies it into smth more logical.
Instead of assigning negative bonuses to all non-first moves that enter PV nodes
we assign positive bonuses in full depth search after LMR only for moves that
will result in a fail high - thus not assigning positive bonuses
for moves that will go to pv search - so doing "almost" the same as we do in master now for them.
Logic differs for some other moves, though, but this removes some lines of code.

Passed STC:
https://tests.stockfishchess.org/tests/view/642cf5cf77ff3301150dc5ec
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 409320 W: 109124 L: 109308 D: 190888
Ptnml(0-2): 1149, 45385, 111751, 45251, 1124

Passed LTC:
https://tests.stockfishchess.org/tests/view/642fe75d20eb941419bde200
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 260336 W: 70280 L: 70303 D: 119753
Ptnml(0-2): 99, 25236, 79528, 25199, 106

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

Bench:  4286815
2023-04-12 20:45:34 +02:00
..
incbin Change mode of incbin.h 2023-03-14 08:23:50 +01:00
nnue Made two specializations for affine transform easier to understand. 2023-04-10 09:29:52 +02:00
syzygy Improve compatibility 2023-04-01 15:36:08 +02:00
benchmark.cpp Warn if a global function has no previous declaration 2023-01-09 20:18:39 +01:00
benchmark.h Warn if a global function has no previous declaration 2023-01-09 20:18:39 +01:00
bitbase.cpp Update copyright years 2023-01-02 19:07:38 +01:00
bitboard.cpp Remove precomputed SquareBB 2023-01-22 10:55:32 +01:00
bitboard.h Remove precomputed SquareBB 2023-01-22 10:55:32 +01:00
endgame.cpp Update copyright years 2023-01-02 19:07:38 +01:00
endgame.h Update copyright years 2023-01-02 19:07:38 +01:00
evaluate.cpp Simplify away nnue scale pawn count multiplier 2023-04-10 11:03:52 +02:00
evaluate.h Update default net to nn-dabb1ed23026.nnue 2023-03-29 21:37:52 +02:00
main.cpp Update copyright years 2023-01-02 19:07:38 +01:00
Makefile Replace deprecated icc with icx 2023-04-01 16:16:48 +02:00
material.cpp Update copyright years 2023-01-02 19:07:38 +01:00
material.h Unify type alias declarations 2023-02-27 08:29:47 +01:00
misc.cpp Fix linking / character types of windows API calls 2023-04-10 09:22:15 +02:00
misc.h Simplify away complexityAverage 2023-04-01 16:14:30 +02:00
movegen.cpp Fix capturing underpromotions issue 2023-04-12 20:38:43 +02:00
movegen.h Update copyright years 2023-01-02 19:07:38 +01:00
movepick.cpp Remove unneeded bitboard from MP 2023-04-05 08:10:34 +02:00
movepick.h Remove unneeded bitboard from MP 2023-04-05 08:10:34 +02:00
pawns.cpp Update copyright years 2023-01-02 19:07:38 +01:00
pawns.h Unify type alias declarations 2023-02-27 08:29:47 +01:00
position.cpp Clean up repetitive declarations for see_ge 2023-03-29 21:43:07 +02:00
position.h Reduce Position::pieces() overloads 2023-04-10 10:51:45 +02:00
psqt.cpp Update copyright years 2023-01-02 19:07:38 +01:00
psqt.h Update copyright years 2023-01-02 19:07:38 +01:00
search.cpp Simplify stats assignment for Pv nodes 2023-04-12 20:45:34 +02:00
search.h Unify type alias declarations 2023-02-27 08:29:47 +01:00
thread.cpp Fix rootComplexity calculation 2023-04-09 15:19:49 +02:00
thread.h Remove nmpColor 2023-04-12 20:40:53 +02:00
thread_win32_osx.h Modernize code base a little bit 2023-01-09 20:25:13 +01:00
timeman.cpp Do no initialize TM in all cases 2023-04-10 10:56:42 +02:00
timeman.h Update copyright years 2023-01-02 19:07:38 +01:00
tt.cpp Use int conversion for Option class 2023-04-10 09:27:35 +02:00
tt.h Update copyright years 2023-01-02 19:07:38 +01:00
tune.cpp Update copyright years 2023-01-02 19:07:38 +01:00
tune.h Unify type alias declarations 2023-02-27 08:29:47 +01:00
types.h Fix null move issue 2023-03-19 11:25:48 +01:00
uci.cpp NNUE namespace cleanup 2023-03-19 11:27:15 +01:00
uci.h Use int conversion for Option class 2023-04-10 09:27:35 +02:00
ucioption.cpp Use int conversion for Option class 2023-04-10 09:27:35 +02:00