People have been interested in chess-playing computers before there ... The final version is even on GitHub. The algorithm is a classic one. First, for each piece, you evaluate the possible ...