Category: Tutorials
-
How to develop a chess program from scratch (for total beginners) Ep. 5: Check Legality of Moves
[Previous episode] Overview A chess program is nothing without a function that checks the validity of moves. This function allows the program to play legal moves and without it, nothing would be possible. In this chapter we will analyze this function. The computer utilizes this function at two points: This can be illustrated better in…
-
How to develop a chess program from scratch (for total beginners) Ep. 4: Scan possible moves
[Previous episode] [Next episode] Overview In the previous chapter we saw how the program scans through all the chessboard to find its own pieces. The next step is to think for all the possible moves for each one of these pieces. This small chapter shows exactly how this is done. Scanning all possible moves In…
-
How to develop a chess program from scratch (for total beginners) Ep. 3: Find my pieces

[Previous episode] [Next episode] [Previous episode] Overview In the previous episode we started thinking about the algorithm of the program we are to create. Now it is time to start building the thinking mechanism of the computer. And we will start from… Step 1. Step 1: Scan the chessboard The first thing one should do…