Skip to content

Shugaku

📖 Rule Reference: Read full rules on external site

🎮 Play Online: 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 = """
6 6
- - - - - -
1 - - - - 2
- - 2 - - -
0 - - - - -
5 - - - 3 -
- - - - - 2
"""

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

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

# Visualize (optional)
res.show()

Solution Output

6 6
# o x x o #
- o # x x -
o # - x o #
- x x x x o
- x o # - #
x x x o # -