Shakashaka (Japanese: しゃかしゃか) is a logic puzzle that appears in puzzle magazines and newspapers, particularly in Japan. It is classified as a type of “fill‑in” puzzle, similar in spirit to nonograms and Sudoku, but it involves placing diagonal half‑squares (triangles) within a rectangular grid to satisfy numerical clues.
Objective
The puzzle presents a rectangular grid composed of white cells and some black cells that contain numeric clues (typically 0–4). The objective is to fill each white cell with either a triangle pointing in one of the four diagonal directions (◤, ◥, ◢, ◣) or leave it empty, such that the following conditions are met:
- Clue Satisfaction – For each numbered black cell, the total number of triangles that touch that cell (i.e., the triangles occupying adjacent white cells that share a side with the clue cell) must equal the printed number.
- Complete Coverage – After all triangles are placed, every remaining unshaded (white) area of the grid must be partitioned into rectangle shapes of size 1 × k or k × 1 (i.e., each region must be a straight line of contiguous cells). In other words, the triangles must “cut” the white space into non‑overlapping, rectangular strips.
Rules in Detail
| Element | Description |
|---|---|
| Grid | A rectangular array of cells, some of which are pre‑filled black squares containing digits 0‑4. All other cells are initially white. |
| Triangles | Each white cell may contain one of four right‑isosceles triangles, each oriented toward a corner of the cell. The triangle occupies exactly half of the cell’s area. |
| Empty cell | A white cell may also remain empty (no triangle). |
| Clue interpretation | A clue “n” indicates that exactly n of the four orthogonal neighbor cells (up, down, left, right) must contain a triangle that touches the clue cell. Only triangles whose right‑angled corner meets the clue cell count. |
| Rectangular requirement | After placing all triangles, any contiguous region of white (un‑triangulated) cells must be a single rectangle aligned with the grid axes. No L‑shaped or other irregular regions are allowed. |
History and Publication
Shakashaka was created by Japanese puzzle designer Nikoli, the same publisher responsible for Sudoku, Kakuro, and many other widely known puzzles. It first appeared in the Nikoli puzzle magazine in the early 2000s and has since been featured in international puzzle collections and online puzzle platforms.
Complexity
The decision problem “Does a given Shakashaka puzzle have a solution?” has been proven NP‑complete. This classification places it among other combinatorial puzzles whose solution verification can be performed in polynomial time, but for which finding a solution is computationally intractable in the general case unless P = NP.
Solving Techniques
Typical human‑solving strategies include:
- Clue propagation – Using the numeric clues to deduce forced triangle placements or forced empty cells.
- Rectangle enforcement – Analyzing the shape of the remaining white region to determine where triangles must be placed to break non‑rectangular formations.
- Parity and counting arguments – Exploiting the fact that each triangle contributes a half‑cell area, helping to balance the overall layout.
- Backtracking – Systematically trying alternative placements when deterministic deductions are exhausted.
Variations
- Larger grids – Puzzles may be presented on larger or irregularly shaped grids, increasing difficulty.
- Additional constraints – Some variants introduce extra symbols (e.g., “no‑triangle” cells) or require the final rectangles to meet size specifications.
- Colored Shakashaka – Cells may be colored, and the rectangle‑formation rule is applied separately within each color region.
Digital Implementations
Shakashaka has been implemented in numerous puzzle‑solving software packages and mobile applications. These programs often include automatic puzzle generators, hint systems, and solution checkers.
Cultural Impact
While less globally ubiquitous than Sudoku, Shakashaka enjoys a dedicated following among puzzle enthusiasts. It is featured in puzzle competitions and has been the subject of academic studies relating to constraint satisfaction problems and combinatorial game theory.