mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 07:34:57 +00:00
![]() One of the conditions for legal move is that the target square is not occupied by a piece of the same color as the moving piece. Instead of checking this for each piece separately at the end, we can check this at the beginning and avoid more expensive checks. |
||
---|---|---|
.. | ||
Chess.cpp | ||
Chess.h | ||
CMakeLists.txt | ||
UCICommand.cpp | ||
UCICommand.h | ||
UCIEndpoint.cpp | ||
UCIEndpoint.h |