Modify castling extension
authorSFisGOD <jonathandumale@gmail.com>
Mon, 10 Aug 2020 07:39:22 +0000 (15:39 +0800)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 10 Aug 2020 09:14:46 +0000 (11:14 +0200)
commitad2ad4c65706c18a5383506d361f1f23fc6a26ab
tree8dc1764fa2d6a36da0136d6941b87207f37890b1
parent875183b310a8249922c2155e82cb4cecfae2097e
Modify castling extension

Extend castling only if there are few friendly pieces on the castling side.

Inspired by silversolver1's (Rahul Dsilva) test
https://tests.stockfishchess.org/tests/view/5f0fef560640035f9d2978cf

STC:
LLR: 2.94 (-2.94,2.94) {-0.50,1.50}
Total: 7096 W: 947 L: 818 D: 5331
Ptnml(0-2): 32, 604, 2181, 665, 66
https://tests.stockfishchess.org/tests/view/5f309f729081672066537426

LTC:
LLR: 2.96 (-2.94,2.94) {0.25,1.75}
Total: 4712 W: 300 L: 215 D: 4197
Ptnml(0-2): 2, 190, 1895, 259, 10
https://tests.stockfishchess.org/tests/view/5f30a2039081672066537430

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

Bench: 4094850
src/search.cpp