Tag: Huo Chess
-
Check for checks bug fix

Huo Chess – Fix on checking for checks The most interesting and annoying bugs are the obvious ones. When the computer starts analyzing the current situation, the code checks for the existence of checks in the chessboard. This check for checks is performed via the function called ‘CheckForWhiteCheck’ (for white) or ‘CheckForBlackCheck’ (for black). The…
-
Huo Chess 2026 updates

Keeping a program up-to-date is not easy. The most difficult part is the obvious one: You must open it. Read the code again. Update it where possible. Post it. Huo Chess has a minimalistic code, yet improvements can always happen. Please find below the code for the latest updated experimental version v0.9923. The points for…
-
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…