IMPORTANT UPDATE: This code samples page is now
obsolete! Find the newer versions of Huo Chess at
http://code.msdn.microsoft.com/Huo-Chess-C-C-VB-micro-fea2bb87 or at
http://huochess.codeplex.com/. See a detailed explanation of the Huo Chess algorithm at
http://www.codeproject.com/KB/game/cpp_microchess.aspx.
Huo Chess - XNA Edition Brief DescriptionHuo Chess is an
open source micro chess program developed by Spiros I. Kakos. This project is the XNA Edition of Huo Chess.
Graphical User Interface capabilities were added to the existing Huo Chess AI engine. Mouse and keyboard user input are supported.
The code is heavily commented so as to help other programmers or chess enthusiasts understand the underlying logic of the chess AI. Please refer to the official pages of Huo Chess C++ (
http://archive.msdn.com/huochess) and C# (
http://archive.msdn.com/cshuochess) versions for
in-depth details on the chess engine algorithm.
For games played by Huo Chess and for an
analytical explanation of its underlying logic, see
http://www.codeproject.com/KB/game/cpp_microchess.aspx. (that page refers to the Huo Chess C++ version, however it applies to the C# XNA edition as well)
For a tutorial on how to develop a chess software application on your own see the
How to Develop a Chess Program for Dummies tutorial at
http://knol.google.com/k/how-to-develop-a-chess-program-for-dummies#. This tutorial is based on the Huo Chess and it is written by the creator of Huo Chess himself.
How to customizeYou can change the CountScore function so as to alter the way the computer AI evaluates the chess board positions. For example if you change the value of the pawns from 1 to 2, then the program AI will value pawns more.
You can also use the
Huo Chess Opening Book Edition to create your personalized Opening Book for Huo Chess. You can find the Opening Book Editor at
https://archive.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=huochess&ReleaseId=404 at the MSDN Huo Chess C++ edition home page. The folder with the opening book entries must be in the same folder as the Huo Chess executable (see the Huo Chess Opening Book Editor page for more instructions).