Computing: Free Pascal Programming

Programming Home   Home   Contact

Learning, how the chess pieces move (ChessMoves).


Description: "ChessMoves" is an interactive graphical application, intended for absolute chess beginners, who may use it to learn to correctly move the different kind chess pieces. Instead of reading in a chess book "the bishop moves diagonally only", the application user can take a bishop piece, place it on the board and let her show, where the bishop actually may move or, alternately, try to move the piece herself, the program telling her, if her move is valid or not. But, the application isn't limited to a single piece on the board: The user may also train herself in setting up the chess board, trying out all possible moves at game opening, trying out the castling move and trying to move the different pieces in 6 predefined game situations. This includes moves to empty fields, captures, setting the opponent check and forbidden moves, in particular of the king piece, when it tries to move into check.
A quick start guide, help concerning the chess rules and a detailed description of how to use the application are included.

Note for programmers: In the actual version 1.0, not all chess rules, as used by he application, are implemented within the code. Some features (such the forbidden moves) are actually based on situation-depending data (string constants); cf. the source for details.

Possible extensions: Adding further features such as piece capture with considering if the captured piece is protected; setting the opponent check or checkmate, etc.

Free Pascal features: Complex data structures (classical Pascal). Loading (exchanging) images from files. Using different color shapes to highlight a given area. Image-clicking event.

Screenshots:

Moving the queen chess piece
 
Setting the opponent checkmate