UCT dynkomi linear_permove(): Always recompute extra_komi from scratch
commit4e2bd8155d199c421cb00957d41ab00a03c2e440
authorPetr Baudis <pasky@ucw.cz>
Sun, 23 Oct 2011 20:19:13 +0000 (23 22:19 +0200)
committerPetr Baudis <pasky@ucw.cz>
Sun, 23 Oct 2011 20:19:13 +0000 (23 22:19 +0200)
treed898bf465ae065b3fbce498dc0e24e32e889f96a
parentc1ce4bd4f89546dddbe2aa4b2b3d7268424c3315
UCT dynkomi linear_permove(): Always recompute extra_komi from scratch

Reusing tree.extra_komi is unreliable when permove is called from persim around lmove boundary since we do not update extra_komi during tree descent.

This fixes very frequent assertion failures in handicap games.
uct/dynkomi.c