Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Ferret vs Gerbil

Author: Sune Fischer

Date: 10:36:29 03/25/02

Go up one level in this thread


On March 25, 2002 at 13:21:04, Dann Corbit wrote:

>On March 25, 2002 at 13:00:11, Sune Fischer wrote:
>[snip]
>>My personal favorite is Beowulf, it is much more readable than Gerbil IMO.
>
>The main idea of Beowulf is a chess learning platform.  Special effort was made
>to help in readability, etc.  I think it can be improved yet more in that
>aspect.  Gerbil has some very good ideas in it that are not found in Beowulf or
>in most other chess engines.  The basic framework is very good and the idea of
>callbacks makes the chess engine part very easily replaceable.  For that reason,
>Bruce's framework could very easily be used for a generic engine to winboard
>interface (which is often the trickiest part to get right).

I'm sure there is a lot to learn from Gerbil, but I just can't understand what
is going on in there, it is full of code like this:

pcon->ss.icmSearching = pcm - pste->pcmFirst;
VCmToSan(pcon, pste, pcm, &san);
VSanToSz(&san, pcon->ss.aszSearching);
...
if (FAttacked(pcon, pcon->argpi[pste->coUs][ipiKING].isq,pste->coUs ^ 1))
...
if ((isz < csz) && (isdigit(argsz[isz][0]))) {
int	cmov;
cmov = 0;
for (i = 0; argsz[isz][i]; i++)
   if (isdigit(argsz[isz][i]))
	cmov = cmov * 10 + argsz[isz][i] - '0';
   else
        break;
   cply = (cmov - 1) * 2;
   if ((argsz[isz][i++] == '.') && (argsz[isz][i] == '.'))
      cply++;
   isz++;
}

I suspect Bruce is a pro. programmer, I would never think of such strange names
for my variables :)

>>Crafty is also not bad once you get the hang of it, I get ideas everytime I look
>>at it :)
>
>It's the "N-reactor"[1] of chess engines.  If there is a chess technique you
>would like to study, it's probably in there.
>
>[1] The N-reactor was the most complicated machine in the world.  There was not
>any single human on earth that could even tell you how it worked.  It had gangs
>of 24-way valves connected to gangs of 24-way valves.

Hehe, well if anyone can, it must be Bob.

-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.