Author: Uri Blass
Date: 02:05:34 07/31/03
Go up one level in this thread
On July 31, 2003 at 03:25:54, Zach Wegner wrote: >On July 29, 2003 at 16:29:41, Russell Reagan wrote: > >>On July 29, 2003 at 15:40:50, Dieter Buerssner wrote: >> >>>On www.iocc.org, one can even find chess related programs. IIRC, one recent >>>winner was some variant of chess (bughouse?). >>> >>>One of my other favorites was a Basic interpreter in 25 lines or so, that could >>>play lunar lander (anybody can remember that game? We had it on one Commodore >>>computer in the late 70ties). >> >>I remember the program to solve the 8-queens problem. All I know is, it worked >>:) >> >>Anyone have any idea what the smallest source code is to a program that plays >>legal chess? I would guess playing other, simpler games would allow for smaller >>code, since chess has all of those special cases. > >Currently, I am writing such a program for fun and in anticipation of the next >IOCCC (when?). It plays both sides, searches 4ply in about a sec, and displays >board in 24 lines of <=80 chars of C code. No castling, ep, underpromotion, >reps, or 50 move rule, so is it really legal chess? I think that the challange should be well defined so here is the challange. The program should not play legal chess(too easy because you can resign or lose on time). The target is to write the shortest program that knows to let 2 players to play a game with the following conditions: 1)The program should let 2 players to play every legal game by giving strings like e2e4,e1g1 e7e8Q and should not allow the player to play illegal move(if a player try to do it then the program should print "error") 2)The program should tell if the game was finished by repetition or by the 50 move rule or by stalemate or by checkmate. 3)The program should also understand the command quit. 4)The program should have no bugs. Uri
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.