liamt19 / Lizard

Chess engine written in C#
MIT License
31 stars 2 forks source link

Simplified Position fields #54

Closed liamt19 closed 4 months ago

liamt19 commented 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.

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/