How to play Yonmoku: 3D Four in a RowThe rules, the 76 lines and five ways to think

Yonmoku: 3D Four in a Row is four in a row on a board that goes up as well as across. Sixteen pegs stand in a 4 by 4 square, and each peg holds four beads, so the board is a 4x4x4 cube of 64 cells. This page gives the rules as the app states them, counts the 76 winning lines, and collects the ways to think and the short history that sit beside the rules in the app.

The rules

The Rules card in the app says it in three sentences.

  1. Take turns dropping a bead onto any peg. Beads stack from the bottom and stay where they land.
  2. Four of your beads in a straight line wins: across the board, up a peg, or on any diagonal: flat across a layer, climbing across a row of pegs, or corner to corner through the cube.
  3. A full board with no line is a draw. The loser of a game starts the next one; after a draw the other player starts.

A game stands alone or belongs to a series: best of 1, 3 or 5. Two people pass one iPhone or iPad across the table, a bead each, or one person plays the AI.

The 76 lines

Every winning line is four cells long, and a 4x4x4 board has 76 of them. Sorted by the way they run:

Not every cell is worth the same. The 8 corners and the 8 inner cells each lie on 7 lines, and each of the other 48 cells lies on 4. Gravity changes what the count means in play: a cell can be filled only after the one beneath it, so a line is live only once its cells can be reached.

Tic-tac-toe in 3D, with gravity: four red beads climb a diagonal through the cube on the sixteen pegs, the beads under them translucent, with Replay's bar at the top at bead 13 of 13.
A finished game. The four beads of the winning line are lifted and lit.

Placing a bead

There is no tutorial screen. In your first game the turn label carries three short hints, and after that it goes quiet.

While you aim, a ghost of your bead floats above the peg, clear of your fingertip, and a fainter bead marks the exact cell where it will come to rest. From version 1.3.1 that marker shows through any peg or bead standing in front of it, a slide has to pass clearly onto the next peg before the aim moves, and a small roll of the finger as it lifts no longer changes the peg. Slide off the board and nothing is played.

Drag to orbit the board, pinch to zoom, and double tap to come home. At every handoff between two players the camera eases back to the same home angle, so the next player sees the board fresh and the last view gives nothing away. After a win you can keep turning the board to see the line from every side.

Ways to think

During a game the app never suggests a move. These five ideas sit beside the rules, for the time between games.

Each end card names the bead that decided the game, and Replay steps through the game bead by bead, which is the quickest way to see one of these ideas at work.

Playing alone

When no one is across the table, the AI is. It considers, shows where it will play, and drops its bead like anyone else. It never shows a level. It grows a little keener when you win and a little gentler when you lose, so most evenings end close.

The daily puzzle is one position a day where you can force a win in three, four or five beads. Monday is the gentlest and Sunday takes real thought, and the first bead is never the obvious one. A wrong bead is answered by the AI before the position comes back. There is no timer and no streak, and the calendar opens any of the last five weeks.

A little history

The name is Japanese: yonmoku, written 四目, comes from 四目並べ, the Japanese name for four in a row.

Four in a row on a four by four by four board is older than the phone. Board makers sold it in the 1960s, first without gravity and soon after with beads on pegs. In Japan it is 立体四目並べ, four in a row in three dimensions.

Without gravity the first player can always win: Oren Patashnik proved it by computer in 1980. With gravity, as here, nobody has solved the game yet.

Play it

Get Yonmoku free on the App Store

About the game, and questions people ask · Support · Privacy policy