Next: Strategical value, Up: Valuation
The algorithm for computing territorial value is in the function
estimate_territorial_value
. As the name suggests, it seeks
to estimate the change in territory.
It considers all groups that are changed from alive to death or vice-versa
due to this move. Also, it makes an assumption whether the move should be
considered safe. If so, the influence module is called: The function
influence_delta_territory
estimates the territorial effect of
both the stone played and of the changes of group status'.
The result returned by the influence module is subject to a number of corrections. This is because some move reasons cannot be evaluated by a single call to the influence function, such as moves depending on a ko.