]> git.sesse.net Git - stockfish/commit - src/movegen.cpp
Simplify pawn moves generator
authorbmc4 <bmc4@cin.ufpe.br>
Tue, 27 Apr 2021 22:59:46 +0000 (19:59 -0300)
committerStéphane Nicolet <cassio@free.fr>
Wed, 28 Apr 2021 11:38:28 +0000 (13:38 +0200)
commit84b42b3ab328e3f1b9829d8f5d967e4d45a45a39
treef758848f0dafeadf988192b006fb9a83078e4756
parent33a858eaa1f792b3413384a3d0993dba36aca92e
Simplify pawn moves generator

This patch simplifies QUIET_CHECKS pawn move generator by merging discovery check
move generator with direct check move generator. It also simplifies emptySquares
instantiation. In addition, I added a comment in generate_moves() to clarify Check
branches.

STC:
LLR: 2.95 (-2.94,2.94) <-2.50,0.50>
Total: 112648 W: 9952 L: 9945 D: 92751
Ptnml(0-2): 369, 7682, 40195, 7729, 349
https://tests.stockfishchess.org/tests/view/6088226895e7f1852abd2978

LTC:
LLR: 2.93 (-2.94,2.94) <-2.50,0.50>
Total: 74656 W: 2797 L: 2765 D: 69094
Ptnml(0-2): 38, 2328, 32554, 2380, 28
https://tests.stockfishchess.org/tests/view/60884e5095e7f1852abd2994

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

No functional change
src/movegen.cpp