Lesson 6: Ko
Ko stops two players from taking the same stone back and forth forever. Learn the rule, see a ko in a diagram and understand what a ko threat is.
This shape is a ko. Each side can capture one stone, and the capture could repeat forever. A rule stops that.
Some positions let both players capture the same stone over and over. If the rules allowed it, a game could last forever. The ko rule prevents that. The word itself is Japanese and is usually translated as "eternity", which is exactly what the rule saves us from.
What a ko looks like
The shape is a small diamond. Black's stone on F5 has been surrounded on three sides, and its only liberty is E5, which is surrounded on three sides by Black. Whoever plays at E5 captures.
Now White plays E5 and lifts the stone.
White's stone on E5 is itself in atari. Black could play F5 and capture it, and then White could capture again at E5, and so on without end. That cycle is exactly what the rule forbids.
The rule
You may not make a move that returns the board to the position it had just before your opponent's last move. In practice: if your opponent has just captured one stone in a ko, you cannot recapture it at once. You must play somewhere else first. After that one move elsewhere, the position is different, and the recapture is legal again.
That move elsewhere is called a ko threat.
Ko threats
A ko threat is a move that forces a reply. If your opponent answers it, you have changed the board, and you may retake the ko. If your opponent ignores it, you carry out the threat and gain something. A good threat is one the opponent has to take seriously: it threatens to capture a group, break into territory, or wreck a corner.
Then it is White's turn, and White needs a threat of their own. The player with more and bigger threats wins the ko. This is the real depth of the rule. Players keep an eye on the whole board during a ko, since every unfinished fight is a possible threat for one side or the other.
Winning, losing, and giving up
You do not have to win every ko. If the ko is worth less than the cost of the threats, it is sometimes right to give it up. The player who lets the ko go loses the stone or the group; the other player connects. Players say they have "won the ko" when they connect it, and "lost the ko" when they let it be connected.
The long cycles
In very rare positions the same board can come back after more moves than a simple ko takes, for example in a triple ko. Rule sets handle this differently. Chinese rules, and many online servers, use a "superko" rule that forbids any move that recreates an earlier position. This site uses the simple ko rule with Japanese counting and superko with Chinese counting; the details are on the page about the ko rule and ko threats.
Try it
On the practice board, a ko is already set up. Capture it, then try to retake straight away. The board will tell you the move is forbidden. Make a move somewhere else, then see how the retake becomes legal.