Closed liamt19 closed 4 months ago
This deals with castling movegen in a DRY manner. This also replaces the InCheck/InDoubleCheck fields with getters that consider the current state's Checkers mask, and removes idxChecker since it is only used in one place.
InCheck
InDoubleCheck
Checkers
idxChecker
Elo | 1.56 +- 3.02 (95%) SPRT | 4.0+0.04s Threads=1 Hash=16MB LLR | 2.95 (-2.94, 2.94) [-5.00, 0.00] Games | N: 12668 W: 3250 L: 3193 D: 6225 Penta | [72, 1257, 3624, 1304, 77] http://somelizard.pythonanywhere.com/test/1208/
This deals with castling movegen in a DRY manner. This also replaces the
InCheck
/InDoubleCheck
fields with getters that consider the current state'sCheckers
mask, and removesidxChecker
since it is only used in one place.