Computer Chess Club Archives


Search

Terms

Messages

Subject: A question about pawn hash tables

Author: Andreas Herrmann

Date: 14:12:07 09/13/00


Hello,

i want to include pawn hash tables in my chess program holmes, but i don't know
how i have to calculate the hash index and the hash key.
I think the hash index of the position will only calculated with the pawns on
the board like the following,

for (pos=A1;pos<=h8;pos=pos+1) {
  if (figure[pos]=pawn) {
    PawnHashIndex = PawnHashIndex ^ RandomIndex[pos].index;
  }
}

is this right??

How can i get a good hash key? What have i calculate with xor?

Thanks for each information.

Andreas


www.wbholmes.de



This page took 0.01 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.