Japanese Culture

Rin Hashi and Nurikabe: The Two Japanese Deduction Puzzles in MyRin

Hashi (bridge-building) and Nurikabe (river shading) are two of Japan's most elegant logic puzzles. This guide covers their origins, their logic, and how to solve them.

The Japanese puzzle publisher Nikoli created dozens of original logic puzzle formats in the 1980s and 1990s that spread worldwide, Sudoku and Kakuro being the most famous. Hashi (Hashiwokakero) and Nurikabe are two others from that same tradition, built on the same philosophy: every puzzle has one solution, reachable through pure deduction, no guessing required.

Both appear in MyRin as part of the Rin game suite, four Japanese-themed puzzles that form the cultural heart of the app. Understanding where these puzzles come from and how their logic works makes them significantly more satisfying to solve.

Rin · Hashi: building bridges between islands

Hashiwokakero (橋をかけろ)
Literally "build bridges." A logic puzzle played on a rectangular grid of islands (numbered dots) and empty water. Each island must be connected to other islands by bridges (horizontal or vertical lines) so that its bridge count matches its number, no two bridges cross, and every island is reachable from every other. Maximum two bridges between any pair of islands.

The puzzle was created by Nikoli and first appeared in their magazine in 1990. The English name "Hashi" is a shortening of Hashiwokakero. The imagery is deliberately Japanese: an archipelago of small islands connected by wooden bridges, the kind seen throughout the Kyoto garden tradition.

The logic of Hashi

Hashi is a graph connectivity puzzle. The question being asked is: how can you connect these nodes (islands) with edges (bridges) such that each node has the specified degree (bridge count), no edges cross, and the graph is connected?

Three deductions resolve most early positions:

Forced large-degree islands. An island numbered 4 with only two reachable neighbors must have 2 bridges to each neighbor (since 4 ÷ 2 = 2, and the maximum is 2 per pair). An island numbered 3 in a corner has at most two neighbors, the two perpendicular directions. It must have at least one bridge to each and possibly two to one. These near-forced placements are your starting points.

Connectivity constraints. Before drawing any bridge, ask whether it might isolate a group of islands from the rest. If island A is only reachable from the main network via island B, and island B has already used all its bridges, island A becomes permanently disconnected. This is the primary error pattern in Hashi, creating disconnected subgraphs by filling up a gateway island too early.

Contradiction by elimination. When you're unsure whether a bridge should be single or double, try assuming single and trace whether that leads to a dead end (an island that can't reach its required count without crossing an existing bridge). If it does, the bridge must be double. Working by elimination, the process of ruling out possibilities, is the core of Hashi deduction.

Rin · Nurikabe: carving a river through white islands

Nurikabe (ぬりかべ)
A grid deduction puzzle where cells must be shaded black (river) or left white (islands). Each number cell defines an island of exactly that size (contiguous white cells). Islands cannot touch each other horizontally or vertically. All black cells must form one connected group. No 2×2 block of black cells is allowed.

Nurikabe takes its name from a creature in Japanese folklore, a wall-like spirit that blocks travelers on night roads. The puzzle metaphor is apt: the black cells form an impassable river that winds between white islands, and the solver's task is to determine exactly where that river runs.

The puzzle first appeared in Nikoli's magazine in 1991. Its constraint structure, four simultaneous rules that must all be satisfied at once, is more demanding than Hashi or Sudoku, which is why Nurikabe is generally considered the harder puzzle of the four Rin games.

The logic of Nurikabe

Nurikabe combines two complementary reasoning directions: expanding islands outward from their seed numbers, and identifying cells that must be river because no island can reach them.

Island expansion. Each numbered cell is the seed of an island of that exact size. A cell numbered 1 is already complete, its four neighbors are all river. A cell numbered 2 must expand by exactly one cell in some direction; the other three neighbors are river. Work outward from small islands first; they constrain the most space with the fewest options.

Unreachable cells. A cell that no island can reach, because it is too far from every numbered cell given the island size constraints, must be river. This is often the fastest way to fill large portions of the grid. The technique: for each numbered cell, calculate the maximum extent of its island (a diamond of cells at Manhattan distance ≤ size−1 from the seed). Any cell outside all such diamonds is river.

The no-2×2 rule. Four black cells forming a 2×2 block are forbidden. This rule exists because Nurikabe's river must be able to flow, it cannot pool. Whenever three black cells form an L-shape, the fourth cell completing the 2×2 must be white, constraining which island it belongs to.

Island isolation. When two islands are correctly identified and their cells are known, any white cells between them that would cause them to merge must be black. Islands touching horizontally or vertically is illegal, this forces river cells into any potential connection point between adjacent islands.

The shared philosophy: shizen and deduction

Both Hashi and Nurikabe, like all Nikoli puzzles, embody a puzzle design philosophy that connects to the Japanese aesthetic concept of shizen, naturalness. In Japanese philosophy, shizen does not mean untouched wildness; it means the state that arises when things find their correct form without force. A Nikoli puzzle's solution is shizen: it is the only arrangement that satisfies all the constraints simultaneously, arrived at through patient deduction rather than forced trial and error.

This is why guessing is considered antithetical to the spirit of these puzzles. Forcing a solution by guessing and backtracking is imposing will on the grid. Finding the solution through logical necessity, each step following from the previous with no other possibility, is yielding to the grid's inherent form. The solver's role is to discover what is already there, not to impose what they want to be there.

This is also why both puzzles reward patience over speed. The solver who reads the grid carefully before marking anything will outperform the solver who marks impulsively and backtracks repeatedly. In Japanese puzzle culture, the clean solve, no erasures, no guesses, first attempt, carries a specific aesthetic satisfaction that is its own reward.