遊び方 · asobikata

How to play Hashiwokakero

Hashiwokakero (橋をかけろ, “build bridges!”) is a logic puzzle published by Nikoli. Connect all islands with bridges so that every island has exactly as many bridges as its number says.

一

Count the bridges

The number on an island is how many bridges end there.

二

One or two

Islands can be joined by a single wooden bridge or a double vermilion bridge, never more.

三

Straight, no crossings

Bridges run horizontally or vertically and must not cross other bridges or islands.

四

One archipelago

In the end every island has to be reachable from every other one.

343323

A solved puzzle

コツ · kotsu

Hashiwokakero solving techniques

Five deductions that crack most puzzles without guessing. Each picture shows the bridges they force.

4321

Corners need doubles

A 4 in a corner has only two neighbours, so it needs a double bridge to both. The same holds for a 6 on an edge and an 8 in the open.

1133

Two 1s never connect

A bridge between two 1s would finish both and cut them off from everything else, so each 1 connects elsewhere. Two 2s never share a double bridge for the same reason.

253341

Count what's missing

A 5 with three neighbours can get at most six bridges. Without one of them it would reach four at most, so every neighbour gets at least one bridge.

212243

Bridges block the way

Bridges never cross, so every bridge closes the lines it passes. An island behind it may have only one way left.

13222

Never close off a group

Everything has to end up connected. If finishing a few islands among themselves would cut them off, at least one bridge has to lead out.

Controls 操作

Click the water between two islands to build a bridge, again for a second one, a third click removes them.

Or drag from an island towards its neighbour, or click two islands one after the other.

Right click / Shift + click removes a bridge.

Ctrl Z Undo · Ctrl Y Redo · H Hint

In Play: N New puzzle · P Pause

Finished islands turn green, overfull ones red. Stuck? Ask the SAT solver for a hint or to check your bridges.

Under the hood 仕組み

Every possible bridge e between two neighbouring islands gets two boolean variables: e₁ (at least one bridge) and e₂ (a second bridge), with e₂ → e₁ so that every arrangement has exactly one model.

¬e₂ ∨ e₁

An island with number n needs exactly n of its variables to be true, written as clauses over all combinations. Crossing bridges exclude each other:

¬h₁ ∨ ¬v₁

Connectivity is hard to express in CNF, so it is added lazily: whenever the solver returns separate groups of islands, a clause demanding a bridge out of such a group is added and the solver runs again.

The generator grows a random archipelago and proves uniqueness by blocking the found solution and asking the solver for another one. Try the different solver modes in the lab.

Race solvers in the Lab →

よくある質問 · FAQ

Questions about Hashiwokakero

What is Hashiwokakero?
Hashiwokakero (橋をかけろ, “build bridges”), also called Bridges or Hashi, is a Japanese logic puzzle published by Nikoli. The grid shows numbered islands; you connect them with horizontal and vertical bridges so that every island has exactly as many bridges as its number, no bridges cross, and all islands form one connected group.
How many bridges can connect two islands?
At most two. A single bridge or a double bridge may join two islands that are in the same row or column with nothing in between.
Can bridges cross each other?
No. Bridges run straight horizontally or vertically and may neither cross other bridges nor pass over islands.
Do all islands have to be connected?
Yes. In a finished puzzle you can travel from any island to any other over the bridges, the islands form a single network.
Is there always exactly one solution?
On Hashi, yes: every generated puzzle is checked by a SAT solver, which proves that no second solution exists, so you never have to guess.