About the code of strelka

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Uri Blass
Posts: 10784
Joined: Thu Mar 09, 2006 12:37 am
Location: Tel-Aviv Israel

Re: Urika!

Post by Uri Blass »

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
User avatar
GenoM
Posts: 911
Joined: Wed Mar 08, 2006 9:46 pm
Location: Plovdiv, Bulgaria
Full name: Evgenii Manev

Re: Urika!

Post by GenoM »

hi Christopher

How you're doing?
Still lost in the tables? :D

best behind the iron curtain regards,
Geno
take it easy :)
Christopher Conkie
Posts: 6074
Joined: Sat Apr 01, 2006 9:34 pm
Location: Scotland

Re: Urika!

Post by Christopher Conkie »

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
486*486=236196 which does fit in an array of 262144.

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

:wink:

Christopher
Last edited by Christopher Conkie on Thu Oct 11, 2007 7:22 pm, edited 2 times in total.
Christopher Conkie
Posts: 6074
Joined: Sat Apr 01, 2006 9:34 pm
Location: Scotland

Re: Urika!

Post by Christopher Conkie »

GenoM wrote:hi Christopher

How you're doing?
Still lost in the tables? :D

best behind the iron curtain regards,
Geno
Nope.

:lol:

Quite the reverse......
mjlef
Posts: 1494
Joined: Thu Mar 30, 2006 2:08 pm

Re: About the code of strelka

Post by mjlef »

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
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
Posts: 10784
Joined: Thu Mar 09, 2006 12:37 am
Location: Tel-Aviv Israel

Re: About the code of strelka

Post by Uri Blass »

The variables are in english.
Comments are in russian and I did not try to translate them.
nczempin

Re: About the code of strelka

Post by nczempin »

mjlef wrote:
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
PawnStruScore1? A chess program written by a Russian programmer who says he does not know English well choses English names for his variables?
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.

Guess the word for "Bitboard" in German.
mjlef
Posts: 1494
Joined: Thu Mar 30, 2006 2:08 pm

Re: About the code of strelka

Post by mjlef »

nczempin wrote:
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?
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.

Guess the word for "Bitboard" in German.
Hmm, I lived in Frankfurt and Germany for a while. Probably something like DerBundesRepublicEinsSpielenBoardenSache :-)

I always wondered if most poeple use English variable names. Cool.
Tony

Re: About the code of strelka

Post by Tony »

mjlef wrote:
nczempin wrote:
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?
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.

Guess the word for "Bitboard" in German.
Hmm, I lived in Frankfurt and Germany for a while. Probably something like DerBundesRepublicEinsSpielenBoardenSache :-)

I always wondered if most poeple use English variable names. Cool.
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
nczempin

Re: About the code of strelka

Post by nczempin »

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
:lol: :lol: :lol:

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