Computer Chess Club Archives


Search

Terms

Messages

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

Author: José Carlos

Date: 03:06:19 09/11/02

Go up one level in this thread


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.



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.