Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Tiniest chess program ever written? This is it !!!

Author: scott farrell

Date: 05:43:59 09/11/02

Go up one level in this thread


On September 11, 2002 at 06:06:19, José Carlos wrote:

>On September 11, 2002 at 04:48:47, Simon Finn wrote:
>
>>On September 11, 2002 at 03:45:49, Alastair Scott wrote:
>>
>>>On September 10, 2002 at 23:40:43, scott farrell wrote:
>>>
>>>>I think this is it - just 1 line:
>>>>
>>>>printf('resign');
>>>
>>>printf('0-1'); would be even shorter ...
>>
>>but doesn't work if the program is Black.
>>
>>>
>>>Alastair
>>
>>Unfortunately both programs are buggy, because printf
>>expects a string constant and ' is the character quote.
>>
>>Try
>>
>>    printf("resign\n");
>>
>>for consistent losses.
>>
>>:)
>>
>>Simon
>
>  It's not that short because you need to #include <stdio.h> ;)
>
>  José C.

That shows you I know nothing about c or c++, I am a java dude.

System.out.println("resign");

does need an silly includes or header files !!!

Scott



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.