]> git.sesse.net Git - stockfish/commit
Simplify King Evasion
authorbmc4 <bmc4@cin.ufpe.br>
Tue, 30 Mar 2021 03:42:45 +0000 (00:42 -0300)
committerStéphane Nicolet <cassio@free.fr>
Wed, 31 Mar 2021 05:47:15 +0000 (07:47 +0200)
commitc489df6f5b5629a135af3b8222fa1ef607ec1526
treefa7eb0887a8e3e886e71f88dbc6f084219b9cdcd
parent62a0b65ff886f8f4895d854705c0c870e6a2a834
Simplify King Evasion

Simplify away the removal of some illegal `KING`-evasion moves during move
generation. Verified for correctness by running perft on the following positions:

```
./stockfish
bench 16 1 6 default perft
Nodes searched: 71608931810

./stockfish
position fen 4rrk1/1p1nq3/p7/2p1P1pp/3P2bp/3Q1Bn1/PPPB4/1K2R1NR w - - 40 21
go perft 6
Nodes searched: 6136386434
```

Passed STC:
LLR: 2.94 (-2.94,2.94) {-1.00,0.20}
Total: 16072 W: 1473 L: 1349 D: 13250
Ptnml(0-2): 57, 1047, 5710, 1159, 63
https://tests.stockfishchess.org/tests/view/60629e7ef183b42957b423b1

Passed LTC:
LLR: 2.94 (-2.94,2.94) {-0.70,0.20}
Total: 59064 W: 2214 L: 2177 D: 54673
Ptnml(0-2): 26, 1944, 25556, 1979, 27
https://tests.stockfishchess.org/tests/view/6062dce4f183b42957b423de

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

No functional change
src/movegen.cpp
src/position.cpp