[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] value_territory & simple Ko
From: |
Trevor Morris |
Subject: |
[gnugo-devel] value_territory & simple Ko |
Date: |
Wed, 21 Nov 2001 15:29:06 -0500 |
I believe that this function should take into account Ko. Rather than
count a point for a vertex with a dead stone, if that stone is in a ko,
only count it for 1/2 (or 1/3) pt.
I'm not sure the best way to code this, but suspect it's easy. Am
I on the right track? See trevora:210, for example.
-Trevor
/* Give territorial value to each vertex.
*
* A vertex with a lively stone has territorial value of 0.
* For other vertices the value is
* 1 if the vertex is classified as territory.
* 0.35 if it is classified as moyo
* 0.13 if it is classified as area
* 0.0 if it is classified as neutral
* One point is added for a vertex with a dead stone.
* Furthermore black points have a negative sign.
*
* The results are written to the territory_value[][] array of the
* influence data.
*/
static void
value_territory(struct influence_data *q)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] value_territory & simple Ko,
Trevor Morris <=