]> git.sesse.net Git - stockfish/commit
Update nodes after a do_move()
authorMarco Costalba <mcostalba@gmail.com>
Sun, 31 Oct 2010 09:55:28 +0000 (10:55 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 31 Oct 2010 10:22:40 +0000 (11:22 +0100)
commitd74025a34e7589fcc0ba93b878cd6484108f9088
tree4e5b8744cedec3c71b47923f880bec70cbd42606
parent49a6fee4fa993a4e7fadba7846dc4ee058c8723e
Update nodes after a do_move()

And also store the node counter in Position and not in Thread.
This will allow to properly count nodes also in sub trees with
SMP active.

This requires a surprisingly high number of changes
in a lot of places to make it work properly.

No functional change but node count changed for obvious reasons.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/benchmark.cpp
src/position.cpp
src/position.h
src/san.cpp
src/san.h
src/search.cpp
src/search.h
src/thread.h
src/uci.cpp