Media Summary: Make color neutral moves so that the same code for white pieces can be used for black pieces as well. This makes the code ... Determining if the King is safe in a given situation. If a move leads to one's own King in check, the move is illegal.
Java Chess Programming Video 13 - Detailed Analysis & Overview
Make color neutral moves so that the same code for white pieces can be used for black pieces as well. This makes the code ... Determining if the King is safe in a given situation. If a move leads to one's own King in check, the move is illegal.