Category: 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…
-
Stupid Moves Checker

Huo Chess Update In the ComputerMove function, there is a code segment checking the ‘stipidity’ of the move analyzed. if ((Number_of_attackers[(m_FinishingColumnNumber – 1), (m_FinishingRank – 1)] >= 1) && (Value_of_attackers[(m_FinishingColumnNumber – 1), (m_FinishingRank – 1)] < ValueOfMovingPiece)){ ThiisIsStupidMove = “Y”;} Proposed improvement in v0.9923: Check not only if number of attackers is more than 1…
-
Huo Chess: Using Copilot to summarize code

AI is now part of our life. And Copilot is the AI assistant we can all have in Microsoft Visual Studio. One of the features Copilot can be used for is to summarize a class in our code and explain it. For example, I used it to produce a summary of the CountScore function of…