Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

One-stroke puzzle

Draw every line of a dot figure in one stroke without lifting the pen or drawing a line twice. Learn Euler's odd-dot rule; numbered figures in three sizes.

How to play

  1. Draw the whole figure in one stroke: every line exactly once, without lifting the pen.
  2. Tap the dot where you want to start, then tap dots one after another. Each tap draws the line from where you are to that dot; only undrawn lines can be used. Dots you can reach next are marked.
  3. Lines may cross each other, but you can only turn at dots.
  4. If the rest can no longer be drawn, the page warns you at once. Undo a step or start over.
  5. Every figure can be drawn. Hint shows a good starting dot, or a safe next dot once you are under way.

Keyboard and touch

TabMove from dot to dot
Enter or SpaceDraw to the focused dot (or start there)
Tap a dotThe same by touch

Tips

  • Count the lines at each dot. If exactly two dots have an odd number, you must start at one of them and you will finish at the other. If every dot is even, start anywhere and you end where you began. Tick Show odd dots to see them.
  • Never use a line that cuts you off from the lines that are left, unless it is the last way out. That is Fleury's rule, and it is what the hint follows.
  • The same figure number and size always give the same figure, so you can share a figure with a friend.

About this puzzle

One-stroke drawings are old folk puzzles, and they started a whole branch of mathematics. In 1736 Leonhard Euler studied the seven bridges of Königsberg and showed that a walk using every bridge once is possible only when no more than two land masses touch an odd number of bridges. Those are the odd dots here. Every figure on this page is made by a random walk over the grid that never repeats a line, so a solution always exists. Diagonals in the same square never cross. The page checks whether the lines left can still be drawn from where you stand: they must be connected and have no odd dots other than your own. The hint follows Fleury's rule. A separately written Python checker confirms Euler's rule for thousands of figures and solves them. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product