Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Any reason to use C?

Author: Sune Fischer

Date: 14:07:09 07/29/03

Go up one level in this thread


On July 29, 2003 at 16:43:50, Dann Corbit 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.
>
>I believe this has been discussed at length.
>This is pretty short:
>#include <stdio.h>
>int main(void) {puts("I resign."); return 0;}

How about:

int main() { return 0;}

You'll just lose on time.

-S.



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.