akari
Tags: Fill | Aliases: light up, bijutsukan, ็พ่ก้คจ
๐ Rule Reference: Read full rules on external site
๐ฎ Play Online: Play at puzz.link โข janko
Input Format
1. Header Line
[ROWS] [COLS]
2. Grid Lines (Remaining [ROWS] lines)
The initial state of the grid rows.
Legend:
* -: No clue / Empty cell;
* x: Pre-filled cell.
* 1-4: Number of bulbs in 4 diagonal cells.
Output Format
Returns the solved grid as a matrix of characters, [ROWS] lines x [COLS] chars.
Legend:
* x: Filled characters or initially number cells
* o: Cells with bulb.
Examples
Python Quick Start
Use the following code to solve this puzzle directly:
import puzzlekit
# Raw input data
problem_str = """
8 8
- - - - - - - -
- - 0 - - 2 - -
- 1 - - - - 2 -
- - - 0 1 - - -
- - - x x - - -
- 1 - - - - 1 -
- - 1 - - 1 - -
- - - - - - - -
"""
# Solve
res = puzzlekit.solve(problem_str, puzzle_type="akari")
# Print solution grid
print(res.solution_data.get('solution_grid', []))
# Visualize (optional)
res.show()