Languages Perl & PHP & Python Perl Games  

Chess

download download  
important code information
author:
Mike McNaughton
minimum requirements:
Chess description

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.


File List:
BBD.GIF178b
BBL.GIF169b
BKD.GIF211b
BKL.GIF196b
BND.GIF200b
BNL.GIF195b
BPD.GIF153b
BPL.GIF153b
BQD.GIF208b
BQL.GIF195b
BRD.GIF173b
BRL.GIF163b
CHESS.PL32Kb
DARK.GIF108b
GNU-GEN.HTM16Kb
LIGHT.GIF108b
MOTD.TXT1Kb
README.TXT2Kb
WBD.GIF202b
WBL.GIF184b
WKD.GIF210b
WKL.GIF188b
WND.GIF216b
WNL.GIF191b
WPD.GIF184b
WPL.GIF165b
WQD.GIF234b
WQL.GIF214b
WRD.GIF191b
WRL.GIF175b

User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 36
version
size in Kb 22
popularity   805/7913374
user rating 5/10
ad


New Code
Popular Code