Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: stefans autoplayer code is chrystal clear: even non-programmers...

Author: Robert Hyatt

Date: 18:09:00 11/15/98

Go up one level in this thread


On November 15, 1998 at 14:09:07, Thorsten Czub wrote:

>It was said chessBase used the stefan meyer-kahlen
>autoplayer code to implement the win95 autoplayer in
>fritz/junior.
>
>
>BUT: the code is chrystal clear and shows , even understandable for NON
>programmers, in which order the implementation has to be done.
>
>Don't let anybody out of the chessbase faction confuse you here, that
>implementing it is a NON-trivial job.
>it is a trivial job.
>
>This is the Meyer-Kahlen source documentation for the auto232 windows
>operation. Note the section below specifically says
>
>1. Savegame
>2. Newgame
>
>in that order.
>
>To have swapped the order round (as is being claimed) would presumably
>require a specific intention to do so within the code and by the progammer.
>
>
>//--------------------------------------------------------------------------
>//- If the chess-programm is the master it can stop the current game by    -
>//- calling this function. The call triggers a Save-Game and, if not       -
>//- not all games have been played, a Newgame Messages to both programmes. -
>//- Note1: Your chess programm should call this function at the end of a   -
>//-       game (if it is the master). Otherwise the driver waits TimeOut   -
>//-       seconds till he triggers on its own these events.                -
>//- Note2: Your chess programm does not need to save the game and call     -
>//-        newgame by its own. The driver sends these messages to the      -
>//-        chess-programm anyway.                                          -
>//--------------------------------------------------------------------------
>int
>Auto232NextGame(void)
>{
>   static unsigned char packet[5];
>
>#ifdef RTEST
>   AppendToAuto232Log("##nextgame",false);
>   if (!Auto232Master) AppendToAuto232Log(" - not sent, not master.",true);
>   else if (!Auto232HandShake) AppendToAuto232Log(" - not sent, not
>handshaken.",true);
>#endif
> Auto232MoveNum= 0;
>
>   if((Auto232Master)&&(Auto232HandShake))
>  { // Only Master can cancel a game.
>      SetEvent(hFakeTimeout);
>      return TRUE;
>   }
>
>   return FALSE;
>}
>
>
>So far the facts !
>
>I am sure the other side will further try to confuse and to hide that
>it was done by failure...
>
>
>but the facts remain the same.
>
>have a nice
>weekend.


Thorsten, I have no idea where you found that code, but would you send it to
me (all of it)???  It appears someone translated stuff to English from German,
which would help me no end in getting that to work in Crafty...

Bob



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.