Fast Counting in Easy Endgames
IntermediateThis article gives a fast way of counting the points in simple positions such as problems A to N in Chapter 1 of O Meien’s, Absolute Counting in the Endgame.
These are positions in which either side may make 1 or 2 moves, and we assume that each move is equally likely to be played by either side. That means that all moves are gote.
This method requires to know a number of values for points, but avoid the need to remember intermediate results and take their averages.
I, PJT, find that with a little practice this method becomes faster and easier than the standard method, at least on problems as simple as those mentioned, A–N.
The method
To Do Add and explain move values (for first move) to examples and details
We assign a value to each existing spot, depending on
how many moves either side needs to secure it,
its currently state, and
its final states, depending on who moves last.
Adding together these values gives the number of points in the region.
Example
For example, in problems H, J, and N:
(unfortunately, our diagram markup does not let us label points and stones with numbers, which would have made this diagram much clearer!)
Stones are counted as:
-¼
1
1½
Vacant spots are counted as:
n 0
h ½
t ¾ Adding up these values yields the count (averaged score estimate) in each problem as:
H (top left): (4½) + + h(½) = 7
J (bottom left): (3) + + t(¾) + h(½) + (-¼) = 6
N (bottom right): (1½) + + t(¾) + h(½) + (-¼) = 5½
Move values
To do New section, needs checking
We can also calculate the move values of the first move in these positions by using the following values for the same marks in the diagrams
¼
1
½
n 0
h ½
t ¼
Adding up these new values yields the miai values of the moves as:
H: (1½) + + h(½) = 3
J: (1) + + t(¼) + h(½) + (¼) = 4
N: (½) + + t(¼) + h(½) + (¼) = 4½
Combined notation
We can express both counts and values in the form “count ``+-`` value”:
-¼ ± ¼
1 ± 1
1½ ± ½
n 0 ± 0
h ½ ± ½
t ¾ ± ¼
yielding:
H: 7 ± 3
J: 6 ± 4
N: 5½ ± 4½
which shows us that the least valuable position is the most urgent to play!
Details
The following table gives the count and move value (miai value) for Black of any spot (intersection) in the disputed region, in the format “count ± value”. The values highlighted with a blue border are those used in the examples above.
| Move ratios[1] | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1:2 | 1:1 | 2:1 | 1:3[2] | 3:1 [2] | |||||||
| Weights[3] | |||||||||||
| Initial state | Black result | White result | ``¾ : ¼`` | ``½ : ½`` | ``¼ : ¾`` | ``⅞ : ⅛`` | ``⅛ : ⅞`` | ||||
| count | count | Swing[4] | ``(c_b - c_w)/2 +- s/2^m``[9] | ||||||||
| capture, territory | 2 | save | 0 | 2 | ``+1½ +- ½`` | ``+1 +- 1`` | ``+½ +- ½`` | ``+1¾ +- ¼`` | ``+ ¼ +- ¼`` | ||
| [5] | capture, must fill | 1 | save | 0 | 1 | ``+ ¾ +- ¼`` | ``+½ +- ½`` | ``+ ¼ +- ¼`` | ``+⅞ +- ⅛`` | ``+⅛ +- ⅛`` | |
| [6] | save | 0 | capture, territory | -2 | 2 | ``-1½ +- ½`` | ``-1 +- 1`` | ``-1½ +- ½`` | ``-¼ +- ¼`` | ``-1¾ +- ¼`` | |
| [5] | save | 0 | capture, must fill | -1 | 1 | ``- ¼ +- ¼`` | ``-½ +- ½`` | ``- ¾ +- ¼`` | ``-⅛ +- ⅛`` | ``-⅞ +- ⅛`` | |
| HDWOE | territory[7] | 1 | territory | -1 | 2 | ``+1½ +- ½`` | ``+0 +- 1`` | ``+ ½ +- ½`` | ``+1¾ +- ¼`` | ``+¼ +- ¼`` | |
| HDWOE | territory | 1 | neutral | 0 | 1 | ``+ ¾ +- ¼`` | ``+½ +- ½`` | ``+¼ +- ¼`` | ``+⅞ +- ⅛`` | ``+⅛ +- ⅛`` | |
| HDWOE | neutral | 0 | territory[8] | -1 | 1 | ``- ¼ +- ¼`` | ``-½ +- ½`` | ``- ¾ +- ¼`` | ``-⅛ +- ⅛`` | ``-⅞ +- ⅛`` | |
| HDWOE | neutral | 0 | neutral | 0 | 0 | ``0 +- 0`` | ``0 +- 0`` |
Notes
[1] This gives the number of moves Black and White respectively need to achieve the given results.
For example,“1:2” means that Black needs 1 move but White 2.
[2] The ratios 3:1 and 1:3 are probably seldom useful.
[3] The weights are used to form the weighted average of the results for Black and White
[4] The swing is the difference between the Black and White results.
[5] This row has values half of those in the previous, since a capture with territory is worth twice as much as a capture that one must fill.
[6} The values in the two for black stones can be derived from those for white stones with colours reversed and the result negated.
[7] “Territory” here means territory of the side making the last move.
[9] Where ``c_b``, ``c_w`` are the black and white counts, ``s`` is the swing and ``m`` is the maximum number of moves (1, 2 or 3)
Note that while chains of stones often have the same final results, and so can be calculated as number × value, vacant spots frequently have different results and must be differently handled, as in the spots in the examples marked h (½) and t (¾). While it is possible (presumes PJT) for adjacent stones to have different results, this does not occur in the examples above, or, indeed, in any of the problems A–N in the book.
Special cases
In many positions the position can be evaluated at a glance, if one knows a few special cases of the formulae. Remember that these formulae are only valid when all moves are gote, for which any follow-up must be sufficiently small.
To Do Add thumbnail examples; clean up and check all cases; see if Problem N can be included; see if it can be put in a table
As usual, we specify the value in the form “count ± move-value”, where the move value applies to the first move if one side needs more than one. Of course all formulae may be applied with colours reversed.
It may be observed that many later cases are generalisations of earlier ones.
``N`` stones in atari, 1 vacant spot to save or capture them (Problem A, B, C)
``N +-N`` (to whoever can capture)
``N`` stones at stake, 1 move to take or save, ``V`` vacant spots[101], all owned[102] by whoever plays first (Problem D)
``N +- (N + V-1)`` (to whoever can capture)
One side can make ``X`` points but the other can neutralise the whole region (Problem K, L)
`` ½X +- ½X ``
``B`` black and ``W``white stones, ``V`` vacant spots[101], all owned[102] by whoever plays first. (Problem F)
`` ( W - B ) +- ( W + (V-1) + B ) ``
``B`` black stones which White can take with 1 move, making the region neutral, ``W``white stones which Black can take, making territory, ``V`` vacant spots[101], all owned[102] by whoever plays first (Problem E, M)
`` (W + ½(V - 1) - ½B) +- (W + ½ (V - 1) + ½B) ``
``B`` black and ``W`` white stones and ``V`` vacant spots[101]; Black can control with 1 move or White with 2; entirely neutral if Black answers White, otherwise all spots not occupied by the winner become territory (Problem I)
`` (W + ¼V - ½B) +- (W + ¾V + ½B - 1) ``
Two chains of the same colour at risk, the first of ``X`` stones can be connected via a vacant spot to safety and the second of ``Y`` stones can be connected via a vacant spot to the first (Problem G, H, L[103])
`` (X + ½ + 1½Y) +- (X + ½ + ½Y) ``
Note that if ``X`` or ``Y`` is 0 this simplifies to an earlier formula.
(Problem J) Options
Black can own[102] the entire region with 1 move;
White can save X stones with one move;
If Black answers, they capture Y, owning everything but X
If White gets a second move, they also save Y, capture N stones and neutralise the whole region
Otherwise all of the V vacant spots that remain vacant belong to Black
Value
`` (X + 1½Y + ¾V-1 -¼N) +- (X + ½Y + ¼V +¼N) `` check, make names consistent
[101] When we specify a number of vacant spots, we include the entire disputed region, including a spot leading to a safe group. [102] When we say an area is owned, we mean no extra moves are needed; in the case of vacant spots, all those not occupied by the owner will form territory. [103] Degenerate case, with one or more values 0.
Limitations and Extensions
It is easy to extend the method to positions where one side needs even more moves to achieve what the other can do in one, but at the cost of ever more values to remember.
In situation where the result of Black making, for example 3 moves to 2 by White is relevant, different and more complicated values would be needed, which is quite likely impracticable.
If some moves are the privilege of one side, some adaptation seems to be needed.
Just as important as the count, if not more so (as it is more relevant to move selection), is the move value. As this fast count is described above, however, it does not help to calculate that value. Since the move value is the sum of the move values at the individual spots, the fast counting method is also applicable.
Derivation
Given something that eventually becomes worth ``B`` if Black wins it or ``W`` if White does, its contribution to the expected count and move value, assuming both players are equally likely to move, is
If either outcome takes 1 move: ``½(B + W) +- ½(B - W) ``
If Black can win in 1 or by answering, but White needs 2 moves: ``(¾B + ¼W) +- (¼B - ¼W) ``
`` (B + (B+W)/2)/2 = (¾B + ¼W)``
`` (B - (B+W)/2)/2 = (¼B - ¼W)``
If Black can win in 1 or by answering, but White needs 3 moves: ``(7B/8 + W/8) +- (1/8B - 1/8W)``
`` (B + (B + (B+W)/2)/2)/2 = (7/8B + 1/8W)``
`` (B - (B + (B+W)/2)/2)/2 = (1/8B - 1/8W)``
If White has the advantage, these formulae must be reversed.
Applying these formulae to the values of the results in the table yields the values given there.
For example, a spot now occupied by White, that could be saved by White in 2 moves or captured by Black in 1, is worth ``¾.2 + ¼.0 +- ¼.2 - ¼.0 = 1½ +- ½``.
It is important to notice that for any given spot all that matters is how many moves either side needs to secure it; variations that do not affect it have no effect on its expected value.
Comparison with the Standard Method
The standard method of calculating these values is:
Calculate the score in each final position.
Work back from them to the initial position by valuing each position where both Black and White may move as the average of the values of the resulting positions.
That may sound difficult, but in the simple examples above there are only three outcomes to consider:
H: ``(11+(6+0)/2)/2=7``
J: ``(10+(5-1)/2)/2=6``
N: ``(10+(3-1)/2)/2=5½``
Such calculations are relatively easy with a little practice.
For the fast method one needs to remember the values for stones and vacant spots under various conditions; then one can run through the disputed region just once, adding up these values as one goes. The standard method requires one to read the various alternatives to the end, score them, and take averages one or more times; this means it is necessary to remember various intermediate results while reading and scoring alternatives. The fast method thus uses long-term memory to save short-term memory.
The standard method can also be applied straightforwardly to positions of arbitrary complexity, while the fast method requires ever more coefficients. It is also not so obvious how to use the fast method when some moves are the privilege of one side.
See also
Discussion
I, Patrick Traill, started by noticing that certain configurations in these problems could be calculated without averaging, e.g. ``N`` stones of one colour that can be captured or saved are worth ``N`` to the captor. I found more complex methods for dealing with other situations, and realised that the values could be applied spot by spot, yielding to the above approach. I make no claim to being the first to observe this, though I have not come across this method on Sensei’s Library or elsewhere — perhaps because the longer calculation tends not to be too hard. I am, of course, open to any suggestions to simplify or improve this method. (N.B. When I started this page I did not notice that I had been logged out of Sensei’s, so the edit was recorded under an IP-address.) PJT 2026-05-11
Robert Jasiek: As far as I know, I invented the method for a simple local gote endgame that N stones contribute N to the modern move value and adjacent inner empty intersections half. This and other simplifying, partly just visual methods for determining move values of basic local endgames are in my books, such as Basic Endgame Problems 1 Gote. Even more important than fast counting is knowing correct move orders. In particular, I proved the most basic theorem in Endgame 5 Mathematics that simple gotes must be played in order of their decreasing-or-constant move values; before, all players had just been guessing that this would be "obviously" correct.
Is it not so that playing the largest gote is optimal, but so is playing any other such that all higher values occur an even number of times? PJT 2026-05-14
Robert Jasiek: If there are only simple gotes, choosing one of the highest move values applies. As soon as the position becomes more complicated than that, this need not always apply. Already having only simple gotes together with one local endgame with one player's simple follow-up can mean that choosing one of the highest move values is wrong; I have given examples for such value anomalies in Endgame 4 Global Move Order. Bill Spight and I have devised theorems for classes of positions where one needs to consider every local move value, the largest one or two move values of the environment and possibly further values to choose correctly among local play, possibly different kinds of local play or tenuki; many such correct choices do not select the largest move value. Your next question is about a position with some mixed local endgames and an even number of other local endgames with higher values. If the evenly many other local endgames with higher values are simple gotes (and strange ko fights do not occur), they are ignored as equal options. If not all of the evenly many other local endgames with higher values are simple gotes, we cannot make such simplifying statements.