Skip to content
One Quick Try

One Line Puzzle

Draw every line of the figure exactly once, without lifting your finger.

Type
Logic
Takes
about 2-4 min
Result in
seconds

One Line

~2-4 min

  1. Draw every line of the figure without lifting your finger.
  2. Tap a point to start, then tap the next point along a line. Each line can be drawn only once.
  3. 6 figures. Your time runs from the first to the last.

Stuck? Some figures can only be drawn from certain points.

Your result: — sec

How it's measured
  • River Crossing

    Get everyone across the river safely.~2-5 min
  • Tower of Hanoi

    Move every disk in the fewest moves.~1-5 min
  • Lights Out

    Turn off every light. Each press flips its neighbors.~1-3 min
  • Matrix Reasoning

    Find the picture that completes the grid.~3-5 min
  • Trail Making

    Connect the circles in order: 1-2-3, or 1-A-2-B.~1-2 min
  • Peg Solitaire

    Jump pegs until only one is left.~3-6 min

How does the one line puzzle work?

Each figure is a set of points joined by lines. Tap a point to start, then tap the next point along a line, and the line is drawn. Every line has to be drawn exactly once, and you can never jump: each new line starts where the last one ended. Undo takes back the last line and Restart clears the figure. There are 6 figures, from a square with one diagonal to a window with fourteen lines.

How is your result calculated?

Your result is the time from pressing Start to drawing the last line of the last figure. Restarts and undos aren't penalised, but both are counted and shown with your time.

Why can some shapes be drawn in one line and others not?

Count the lines meeting at each point. A figure can be drawn in one line exactly when it is all in one piece and the number of points where an odd number of lines meet is zero or two. If there are two, you must start at one of them and you will finish at the other. If there are none, you can start anywhere and you will end where you began.

The reason fits in a few sentences. Every time your line passes through a point, it uses two of the lines there: one in, one out. Only the start and the finish get a single line without a partner. So only those two points can have an odd count. This rule comes from Leonhard Euler, who used it in 1736 to show that nobody could walk across each of the seven bridges of Königsberg exactly once.

Every figure on this page passes Euler's test, and the site's tests check that each one really can be drawn. After 2 restarts on the same figure, the points with an odd number of lines are marked for you.

How do you solve one line puzzles?

  • Find the odd points first. If two points have an odd number of lines, start at one of them. Starting anywhere else can never work.
  • Leave bridges for last. If drawing a line would cut the remaining lines into two separate pieces, take another line first if you can.
  • Try the house. The figure called the house, a square with a roof and both diagonals, is a classic: in Germany children draw it while saying "Das ist das Haus vom Ni-ko-laus", one syllable per line.

This is a recreational puzzle. For another puzzle about a route, try the Trail Making Test; for another classic logic puzzle, the River Crossing Puzzle.

Questions

Can every shape be drawn in one line?
No. A shape can be drawn in one line only if it is connected and has zero or two points where an odd number of lines meet. A square with both diagonals has four such points, so it can't be done.
Where should I start?
At a point where an odd number of lines meet, if there is one. A figure with two such points must be started at one of them and finished at the other. If every point has an even number of lines, start anywhere.
Who worked out the rule?
Leonhard Euler, in 1736, while solving the puzzle of the seven bridges of Königsberg. His argument is usually counted as the start of graph theory.
Do restarts count against me?
Only through the clock. Your result is your time; restarts and undos are counted and shown beside it, but they don't add a penalty.
Can I cross a line I've already drawn?
Lines may cross on the picture, but you can't draw the same line twice. Each line between two points can be used exactly once.