Skip to content

Shirokuro

Aliases: Shirokuro-link, white-black-link

📖 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 = """
10 10
b - w b w - b - b -
b - w w - w b w - -
w b w w - b b b - b
w - b - - - w - w -
- w b w w b b b - w
b b - b - - - w w b
b - b b - b w b - w
- - - w - - - - b w
w w w b w - w - - b
w - - - b w - w - b
"""

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

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

# Visualize (optional)
res.show()

Solution Output

10 10
e ew w s e ew w - s -
e ew w n - e w s ns -
e w s e ew w s n ns s
s - n - - - n - n ns
ns e w s e w s s - n
n s - n - - ns n e w
s ns s s - s n e ew w
ns ns ns n - ns - - e w
n n n e w ns e ew ew w
e ew ew ew w n - e ew w