Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: open source code / performance - Hyatt's Successes

Author: Uri Blass

Date: 12:14:59 08/21/05

Go up one level in this thread


On August 21, 2005 at 14:12:26, Rolf Tueschen wrote:

>Couldyou explain to a real donkey what it takes to program something like
>K-safety? Please keep it as short as possible.

In order to program something like king safety I need to use variables and
arrays.

Most of the time(at least for me) is not writing the code but checking in
different positions that I really get the expected result.


 And what do you mean with
>structure? Is it something like Italian compared to German with diferent
>structures?

I mean for example the way that I represent the board.

Fruit is using array of 256 integers for the board when there are many squares
that are obviously not in the board.
I use different array for the same purpose so I cannot use copy and paste if I
want to continue to use that array and basically I need to translate fruit's
code to human language and later to translate it to code with different
structure.

I also mean to the choice in what files to include global variables

global variables are variables that can be used in many files and fruit is
better code because it does not have all of them or almost all of them in one
file like movei.

In the case of movei the gloabal variables are simply known to all files
including files that do not need them.

 And how could it be difficult at all to program code if you know how
>to program?

The main problem is bugs and the program may crash because of some wrong
information that I coded

Fruit has an advantage here(at least relative to movei) because it has a lot of
code to detect errors so even if fabien does an error then it is more easy to
find the reason for him relative to programs without good functions to detect
bugs.

Uri



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.