]> git.sesse.net Git - stockfish/commit
An VALUE_TYPE_EVAL score cannot overwrite an entry
authorMarco Costalba <mcostalba@gmail.com>
Mon, 30 Mar 2009 08:09:27 +0000 (09:09 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 30 Mar 2009 08:09:27 +0000 (09:09 +0100)
commit2c0cd95ecf0c20b58da89022e293a0ea0476d666
treeb2f5bb58b1dda76cd517251fd176a72ec390a666
parent6a8e46d53efca6dd56a396b32f43bef9f95127d6
An VALUE_TYPE_EVAL score cannot overwrite an entry

If we want to store a value of type VALUE_TYPE_EVAL for
a given position and we found an already exsisting entry
for the same position then we skip.

We don't want to overwrite a more valuable score with a
lesser one. Note that also in case the exsisting entry is
of VALUE_TYPE_EVAL type the overwrite is unuseful because
we would store the same score again.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/tt.cpp