mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
0505a815f7
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 |