A Code that lets you play chess. Its a pretty cool code.
-----About-----
Jan-97: Got the barebones program working. Only understood coordinate-coordinate
move notation (e.g. d3-e4). Did not check for legal moves.
Feb-97: Added code to support multiple simultaneous games. Changed loadgame(),
savegame(), newgameform(). Added listgames(). Added additional text
datafile of games.
1-Mar-97: Added code to understand algebraic notation. Also checking for legal
moves. Implemented en-passant captures.
15-Mar-97: Finished code for 'lost right to castle'. Now moving a rook or king
loses right to castle. Implemented pawn promotion (e.g. b8/Q, fxg1/R).
To do: Check for check, checkmate, stalemate, draw (50 move, 3 position repetition),
temporarily can't castle due to threat.
50 move draw: count moves since last pawn move. if 50 then draw.
3 position repetition: store each position in an array in FEN. After each move,
check for 3 duplicates. If 3 dups then draw.
-----What's Here-----
You should have received the following with this archive:
chess.pl The script itself
*.gif 26 GIF piece and board images
readme.txt This file
gnu-gen.htm GNU General Public License
-----Distribution-----
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.