Skip to content
Thinking Games
EN
Planning

One Stroke: how to draw a figure without lifting your finger

A one-stroke drawing asks you to trace every line of a figure in a single movement, without lifting your pencil and without going over a line twice. Counting the lines that meet at each dot tells you where to start, where you will finish, and whether the figure can be drawn at all.

The rules, as the app states them

Trace the whole drawing without lifting your finger.

  1. Tap any dot to start there. Then tap, or drag to, a neighboring dot joined to yours by a line you haven’t finished tracing.
  2. Trace every line without lifting your finger. You may pass through a dot as often as you like, but each line only once. A double line is traced twice, and a line with an arrow only in the arrow’s direction.
  3. Tapping the dot you just came from undoes your last move, unless the line back is a double line with one pass left: then it traces that pass. You win when every line is traced.

What a one-stroke puzzle is

The question is older than the puzzle. In the 1730s the people of Königsberg wondered whether a walk could cross each of the city's seven bridges exactly once. Leonhard Euler showed that it could not, and his argument ignored distances and shapes altogether. All that mattered was how many bridges touched each piece of land. That proof is usually counted as the beginning of graph theory.

A one-stroke drawing is the same problem with the map removed. Dots are the pieces of land, lines are the bridges, and a route that uses every line exactly once is called an Euler path.

The rules in detail

In One Stroke the figure is made of dots joined by lines. A line always joins two neighboring dots, across, down or diagonally. You tap a dot to start there and then move from dot to dot along the lines.

  • Every line has to be traced, and a normal line only once.
  • You may pass through the same dot as often as you like. The limit is on lines, not on dots.
  • You do not have to finish where you started.
  • A double line has to be traced twice, in either direction.
  • A line with an arrow can only be traced the way the arrow points.

Until you trace your first line you can still change the starting dot. After that, tapping the dot you just came from undoes the last move. The one exception is a double line with a pass left: tapping back traces that second pass. The level is solved when the counter shows every line traced.

Where to start: count the lines at each dot

Before you trace anything, write down for each dot how many lines meet there. Then look only at the dots with an odd number.

Here is why that works. Every time your stroke passes through a dot, it arrives on one line and leaves on another: two lines used. So a dot in the middle of the route always has an even number of lines. Only two dots can break that pattern: the one where you start (you leave without having arrived) and the one where you finish.

  • Two odd dots: you must start at one of them, and you will finish at the other.
  • No odd dots: you will finish where you start. In a figure with no arrows, any dot works as a start.
  • Four or more odd dots: the figure cannot be drawn in one stroke. That was Königsberg: all four pieces of land had an odd number of bridges.

Every level in the app can be solved, so you only meet the first two cases.

Four techniques

1. Start at an odd dot

This is the count above. With two odd dots, starting anywhere else fails however carefully you play.

2. Do not burn your bridges

At a junction, ask of each line: if I take it, can I still get back to everything that is left? A line that is the only link between you and the untraced part of the figure must be kept for last. Closing a loop early is the usual way of breaking this rule: you return to a dot that has no free lines while part of the figure is still untouched. This is Fleury's algorithm. In a figure without arrows, if you follow it from a correct start you never get stuck.

3. A double line counts as two

When you count, a double line adds two to each of its ends, so it never changes whether a dot is odd or even. In play, it gives you an out-and-back: you can go down a double line into a dead end and come straight out again.

4. Let the arrows choose

Arrows do not change the count, but they decide which odd dot is the start. A dot whose lines all point towards it cannot be a start, because you could never leave it. A dot whose lines all point away cannot be the finish. Mid-route, an arrow is a one-way door: check that you will not need to come back through it.

A worked example

Two squares that share the corner E, plus a short tail from B to C. Nine lines in all.

Two squares joined at E, with a tail B to C.
A─B─C
││
D─E─F
││
G─H
  1. Count. A has 2 lines, B has 3, C has 1, D has 2, E has 4, and F, G and H have 2 each. The odd dots are B and C.
  2. Choose the start. It has to be B or C. Take C, the loose end. The stroke will finish at B.
  3. C to B. There is no other line at C.
  4. B to A, A to D, D to E. At B you could also have gone down to E; both work.
  5. The junction at E. Three lines are free: up to B, across to F, down to G. Going up to B now would be the mistake. You would arrive at B with all three of its lines used and the lower square still untraced. So take F.
  6. E to F, F to H, H to G, G to E. The lower square is done and you are back at E with one line left.
  7. E to B. Nine lines traced, and you finish at B, the other odd dot, as the count predicted.

Starting at B also works, as long as the tail to C is the very last line you take.

Common mistakes

  • Thinking a dot can only be visited once. In the example you pass through E twice. That is allowed, and in most figures it is necessary.
  • Closing a loop too early. Before you return to a junction, check that you can still leave it.
  • Counting a double line as one. It is two lines for the count and two passes for the stroke.
  • Patching up a wrong start. If you began at an even dot of a figure with two odd dots, no route will fix it. Undo back to the beginning.

How the difficulty grows in the app

One Stroke has 120 levels. The two tutorials are a plain square, where any start works, and a square with a tail, where only the two odd dots do. Easy levels fit on a 3×3 grid of dots, have 6 to 9 lines and no diagonals; the later ones add either double lines or lines with an arrow, never both. Medium levels grow to 4×4 dots and 10 to 15 lines, and diagonals appear. Hard levels reach 5×4 dots and up to 22 lines, and most of them mix double lines and arrows in the same drawing.

The hints use the reasoning in this guide. Before you start, a hint tells you to count the lines and highlights the dots you can start from. On the way, it crosses out a line that would cut you off from the rest and says why. If your stroke can no longer be finished, it tells you how many moves to undo.

The same counting idea solves another game in the collection: in Domino Chain the numbers play the part of the dots and the tiles are the lines. See all the games.

Frequently asked questions

How do you know if a figure can be drawn in one stroke?

Count the lines at each dot. If no dot or exactly two dots have an odd number of lines, and the figure is all in one piece, it can be drawn. With four or more odd dots it cannot.

Where should you start a one-stroke drawing?

At a dot with an odd number of lines, if there are any. There will be two of them: you start at one and finish at the other. If every dot is even, start anywhere and you will end where you began.

Can the seven bridges of Königsberg be crossed in one walk?

No. Each of the four land areas had an odd number of bridges (five, three, three and three), and a single walk allows at most two odd points. Euler proved it in the 1730s.

What is an Euler path?

A route through a network that uses every connection exactly once. If it ends where it began it is called an Euler circuit. A one-stroke drawing is an Euler path on paper.

More games in the collection