I plan to look at strelka's search later but at this time I am more interested in the bitboards in the data structure because the data structure is the basis for everything.
I find that after understanding one or few numbers in a table of 64 numbers I can guess the other numbers so I simply build the table by myself to make sure that I understand and later add code to sterlka to compare the table that I write to the table that is in sterlka after the xor.
Uri
About the code of strelka
Moderator: Ras
-
- Posts: 911
- Joined: Wed Mar 08, 2006 9:46 pm
- Location: Plovdiv, Bulgaria
- Full name: Evgenii Manev
Re: Urika!
hi Christopher
How you're doing?
Still lost in the tables?
best behind the iron curtain regards,
Geno
How you're doing?
Still lost in the tables?

best behind the iron curtain regards,
Geno
take it easy 

-
- Posts: 6074
- Joined: Sat Apr 01, 2006 9:34 pm
- Location: Scotland
Re: Urika!
486*486=236196 which does fit in an array of 262144.Uri Blass wrote:I plan to look at strelka's search later but at this time I am more interested in the bitboards in the data structure because the data structure is the basis for everything.
I find that after understanding one or few numbers in a table of 64 numbers I can guess the other numbers so I simply build the table by myself to make sure that I understand and later add code to sterlka to compare the table that I write to the table that is in sterlka after the xor.
Uri
In a multi dimensional array say...... 2*2*3*3*3*3*3*3 you could hold all combinations of pieces (not pawns) possible.
You could write a program that gave you the value for any combination.
Say this.....
0 0 0 0 0 0 0 1 would give the increment (or even index) for a black knight advantage in the endgame.
and
0 0 0 0 0 0 0 2 would give it for 2 black knights advantage in the endgame.
You could do the reverse to find values in the opening.
You could "reverse engineer" it all.....

Christopher
Last edited by Christopher Conkie on Thu Oct 11, 2007 7:22 pm, edited 2 times in total.
-
- Posts: 6074
- Joined: Sat Apr 01, 2006 9:34 pm
- Location: Scotland
Re: Urika!
Nope.GenoM wrote:hi Christopher
How you're doing?
Still lost in the tables?![]()
best behind the iron curtain regards,
Geno

Quite the reverse......
-
- Posts: 1494
- Joined: Thu Mar 30, 2006 2:08 pm
Re: About the code of strelka
PawnStruScore1? A chess program written by a Russian programmer who says he does not know English well choses English names for his variables?Uri Blass wrote: I am not interested in the evaluation (I do not think that evaluation is relatively the strongest part of strelka) but mainly in the data structure and the search so I will probably not try to learn the meaning of PawnStruScore0 and PawnStruScore1 that seem to me to be about evaluation.
Uri
-
- Posts: 10784
- Joined: Thu Mar 09, 2006 12:37 am
- Location: Tel-Aviv Israel
Re: About the code of strelka
The variables are in english.
Comments are in russian and I did not try to translate them.
Comments are in russian and I did not try to translate them.
Re: About the code of strelka
Choosing English variable names and even comments is very common in the international IT industry, and not knowing English well enough for a fluent conversation certainly doesn't stop you from using English words in a program (and has stopped far too few to use them in comments or method names; I'm currently having to fight with "prenames" and such), especially when much of the computer chess pseudocode, real code and terminology is in English.mjlef wrote:PawnStruScore1? A chess program written by a Russian programmer who says he does not know English well choses English names for his variables?Uri Blass wrote: I am not interested in the evaluation (I do not think that evaluation is relatively the strongest part of strelka) but mainly in the data structure and the search so I will probably not try to learn the meaning of PawnStruScore0 and PawnStruScore1 that seem to me to be about evaluation.
Uri
Guess the word for "Bitboard" in German.
-
- Posts: 1494
- Joined: Thu Mar 30, 2006 2:08 pm
Re: About the code of strelka
Hmm, I lived in Frankfurt and Germany for a while. Probably something like DerBundesRepublicEinsSpielenBoardenSachenczempin wrote:Choosing English variable names and even comments is very common in the international IT industry, and not knowing English well enough for a fluent conversation certainly doesn't stop you from using English words in a program (and has stopped far too few to use them in comments or method names; I'm currently having to fight with "prenames" and such), especially when much of the computer chess pseudocode, real code and terminology is in English.mjlef wrote:
PawnStruScore1? A chess program written by a Russian programmer who says he does not know English well choses English names for his variables?
Guess the word for "Bitboard" in German.

I always wondered if most poeple use English variable names. Cool.
Re: About the code of strelka
I do that here in the Netherlands as well for variables and comments.mjlef wrote:Hmm, I lived in Frankfurt and Germany for a while. Probably something like DerBundesRepublicEinsSpielenBoardenSachenczempin wrote:Choosing English variable names and even comments is very common in the international IT industry, and not knowing English well enough for a fluent conversation certainly doesn't stop you from using English words in a program (and has stopped far too few to use them in comments or method names; I'm currently having to fight with "prenames" and such), especially when much of the computer chess pseudocode, real code and terminology is in English.mjlef wrote:
PawnStruScore1? A chess program written by a Russian programmer who says he does not know English well choses English names for his variables?
Guess the word for "Bitboard" in German.
I always wondered if most poeple use English variable names. Cool.
For cursings of the previous person working on the code, the company etc I mostly use dutch.
Tony
Re: About the code of strelka
Tony wrote: I do that here in the Netherlands as well for variables and comments.
For cursings of the previous person working on the code, the company etc I mostly use dutch.
Tony



How about cursing about your own code? what language do you use there?
Just had a few moments where I've had to name a few methods
dontHaveaGoodNameForIt(int x) etc...