Skip to content

tatamibari

📖 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 = """
8 8
s - - - - - - -
- - s - - v - v
- - - - - - - s
- v - s - - v -
- h - - h - - -
- - - - v - s -
- - - h - - h v
v - h - - s - h
"""

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

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

# Visualize (optional)
res.show()

Solution Output

8 8
1 3 7 7 10 10 15 17
2 3 7 7 10 10 15 17
2 3 8 8 10 10 15 18
2 3 8 8 10 10 15 19
2 4 4 9 9 12 12 19
2 5 5 5 11 12 12 19
2 5 5 5 11 13 13 19
2 6 6 6 11 14 16 16