RulesBeginner

Gomoku Overlines: Count the Entire Run Before Filling a Gap

Learn to count connected stones across a gap, distinguish freestyle wins from exact-five exercises, and check Renju overlines.

Gomoku.now Editorial TeamPublished Updated 6 min readEditorial policy
Gomoku stones arranged on a board beside a rules notebook
Illustrative cover artwork. The example positions appear in the article below.

Key takeaway

Count outward in both directions from the proposed move until the run actually ends.

In this article
  1. Start with the rule, not the shape
  2. Count from the new stone in both directions
  3. A gap can hide more than one extra stone
  4. Check diagonals with the same arithmetic
  5. Compare freestyle, exact five, and Renju carefully
  6. Design a count-before-click drill
  7. Review counting mistakes by their cause
  8. Step through a separate board study

Start with the rule, not the shape

An overline is a continuous row of six or more stones of one color. It can be horizontal, vertical, or diagonal. The important word is continuous: six stones spread along a row with an empty intersection between them do not yet form a six-stone run. Filling that intersection may connect two groups and create an overline immediately. This is why a move that looks like a routine completion deserves a full count before you place it.

This guide uses a 15 by 15 board, columns a through o, rows 1 through 15, with h8 at the center. Unless a section explicitly changes the rule, examples use freestyle Gomoku. On Gomoku.now, the Gomoku rules option awards a win for a continuous run of at least five. An overline therefore wins in that mode. Exact-five exercises are useful comparisons, but they are not a separate Standard game mode offered by the website. Establish the rule before judging the move.

Count from the new stone in both directions

Use a mechanical procedure instead of recognizing a familiar-looking cluster. Imagine the proposed stone on the board. Count it once, then walk along one direction until you encounter an empty intersection, an opposing stone, or the board edge. Return to the proposed stone and walk the opposite way. Add the stones on both sides to the new stone. Repeat this procedure on all four axes through the move, since a horizontal gap fill can also complete a diagonal line.

In a hypothetical freestyle position, Black has d8, e8, f8, h8, and i8. It is Black to move, g8 is empty, and all unlisted intersections are empty. From g8, the left count is three stones and the right count is two. Adding the new stone makes six, from d8 through i8. Black wins in freestyle. Saying that g8 completes e8 through i8 is incomplete analysis: that five-point segment lies inside a longer continuous run, and the connected stone at d8 still counts.

A gap can hide more than one extra stone

Separate the number of stones already present from the number that will be connected after the move. In another hypothetical freestyle exercise, White has c6, d6, e6, g6, h6, and i6. White is to move at f6. Nothing else is occupied. Before the move there are two groups of three; afterward there is one run of seven. The two empty points beyond the run, b6 and j6, do not reduce its length. They simply mark where counting stops.

Now alter that exercise by putting a Black stone at e6 instead of a White stone. White playing f6 connects only f6 through i6, a run of four, because Black at e6 stops the count. The White stones at c6 and d6 are irrelevant to that continuous run. This comparison trains a more useful habit than memorizing pictures: identify the first genuine stopping point on each side. Do not jump over an opponent, and do not stop at an arbitrary five-point window because it matches the result you expected.

Check diagonals with the same arithmetic

Diagonal counting becomes easier when you say both coordinates aloud. A step northeast increases the letter and the row number by one. A step southeast increases the letter and decreases the row number by one. Keep that relationship fixed while scanning; otherwise it is easy to borrow a nearby stone from the wrong diagonal. A long diagonal should be counted exactly like a horizontal run, not estimated from how dense the cluster appears.

For a hypothetical freestyle exercise, Black has d4, e5, f6, h8, and i9, with Black to move and g7 empty. There are no other stones. Playing g7 creates d4, e5, f6, g7, h8, i9, a run of six. Now move the Black stone at i9 to i8 and repeat the count. The diagonal stops at h8 and contains five after g7. The stone at i8 is close but off the line. Explain that difference before moving on; accurate coordinates are more valuable than a quick visual answer.

Compare freestyle, exact five, and Renju carefully

Under a rule requiring exactly five, a six-stone run is not an exact-five victory on that axis. Do not translate that statement into a claim that every overline is automatically an illegal placement in every exact-five game. Winning conditions and placement prohibitions are different questions. A rules comparison should state both explicitly. For this article, an exact-five exercise only asks whether the resulting run has length five, not whether an unspecified tournament procedure would allow the move.

Renju makes color important. Under the official RIF rules, White wins with five or an overline. Black is subject to forbidden-move rules, including overlines, with the exact-five qualification described in the official win provisions. Check every axis before deciding whether a Black move wins or is forbidden. Do not summarize the full rule as merely “six always loses,” because simultaneous exact-five considerations matter. Gomoku.now provides a Renju option and checks Black moves, but difficult official-rule questions should be studied against the RIF text rather than inferred from one interface response.

Design a count-before-click drill

Make three small diagrams on paper and label the side to move. First use the horizontal Black position d8, e8, f8, h8, i8 with Black to move. Second use the diagonal position d4, e5, f6, h8, i9 with Black to move. Third use White c6, d6, e6, g6, h6, i6 with White to move. These are isolated hypothetical counting studies, not claims about a complete alternating game history. All unspecified points are empty in each study.

For each board, write the candidate, the count on each side, the total, and the freestyle result before placing anything. Then erase one endpoint stone and repeat. Finally replace one stone adjacent to the gap with an opposing stone and count again. This last change is important because it tests whether you really stop at a blocker. A good answer includes the two coordinates delimiting the final continuous run. Merely writing “win” gives you no evidence that you counted correctly rather than guessed from a recognizable shape.

Review counting mistakes by their cause

When your answer is wrong, classify the error. Did you forget a connected stone beyond the apparent five? Did you cross an empty point? Did you mix two diagonals? Or did you count correctly but apply the wrong winning rule? Those errors need different repairs. A coordinate slip calls for slower tracing, while a rules mistake calls for labeling the variant at the top of the diagram. Repeating random overline examples without naming the failure can reinforce the same bad shortcut.

Finish a short session by inventing one new gap position with a different total. Aim for four, five, six, or seven after the move, and ask another player to count it. Include a nearby off-line stone as a distraction, but keep the proposed intersection empty. You have learned the skill when your explanation names the run endpoints, includes every connected stone, and reaches a rule-specific conclusion without changing the count to fit your preferred result. The purpose is dependable evaluation, not fear of long lines.

Step through a separate board study

The board below is a sparse freestyle study, not a complete game record. Only the listed stones are present. Compare the empty winning points before and after each added stone. The notes name the line being tested; a real game also needs a check of threats elsewhere on the board.

Two windows can share one defensive point

Step 1 of 2

The five-point windows e8 to i8 and f8 to j8 both need h8. In freestyle, Black h8 would make six and win.

Columns a to o run left to right. Rows 1 to 15 run bottom to top. h8 is the center.

References

Frequently asked questions

Does an overline win in freestyle Gomoku?

Yes. A continuous run of six or more satisfies the at-least-five winning condition.

Does the website offer a Standard rules mode?

The inspected play controls offer Gomoku and Renju, not a separate Standard mode.

How should I count a filled gap?

Count the new stone plus all consecutive same-color stones in both opposite directions, stopping at an empty point, opponent, or edge.

Put it into practice

Try these ideas against the computer or a friend.

Editorial standards and sources

Rules depend on the variant being played. Worked examples are study positions, and computer suggestions are not proofs of perfect play. Consult the linked rule sources when checking a disputed position.

Topics

gomoku overlinecounting gomoku runsfreestyle gomokuRenju overline

Share this article

Gomoku.now Editorial Team

Read about the editorial byline, source selection and how to report a correction. Cover artwork is illustrative, not a record of the example position.

All Gomoku articles