Skip to content

Nurikabe

📖 Rule Reference: Read full rules on external site

🎮 Play Online: Play at puzz.link • Play at Janko


Input Format

TBD

Output Format

TBD

Examples

Python Quick Start

Use the following code to solve this puzzle directly:

import puzzlekit

# Raw input data
problem_str = """
10 10
- - - - 2 - 2 - - -
2 - - - - - - - 2 -
- - - 2 - - - - - -
- 2 - - - - 2 - - -
- - - - - 2 - 2 - -
- - 2 - - - - - - -
- - - - - 2 - 2 - -
- - 2 - - - - - - 2
2 - - - - 2 - - - -
- - - - - - - - 2 -
"""

# Solve
res = puzzlekit.solve(problem_str, puzzle_type="nurikabe")

# Print solution grid
print(res.solution_data.get('solution_grid', []))

# Visualize (optional)
res.show()

Solution Output

10 10
x x x - - x - - x x
- - x x x x x x - x
x x x - - x - x - x
x - - x x x - x x x
x x x x - - x - - x
x - - x x x x x x x
x x x x - - x - x -
- x - x x x x - x -
- x - x - - x x x x
x x x x x x x - - x