eg:

TEMPO 1

alpha = 10

beta = 20

val = 11

as val > alpha --> tt_record(11,TT_EXACT)

TEMPO 2

alpha = 22

beta = 30

(of course the zobristKey is the same of TEMPO 1 and depth is <=)

probe hashtable:

- Code: Select all
`....`

phashe = hash[zobristKey % HASH_SIZE];

if ( phashe.key == key AND phashe.depth >= depth )

if (phashe.flags == TT_EXACT)

return phashe.val

....

in this case the search returns the value stored in hashtable (11) which is out the window 22-30

is that correct or would need to store the values alpha beta in hashtable ?

Many thanks

g.