lits
Aliases: lits
📖 Rule Reference: Read full rules on external site
🎮 Play Online: Play at puzz.link • janko
Input Format
TBD
Output Format
Returns a grid with LITS format representing the path segments of the single continuous loop.
Cell Format:
Each non-empty cell contains a string of characters indicating the directions of the path passing through it.
L: Shape "L"I: Shape "I"T: Shape "T"S: Shape "S"-: Empty cell.
Examples
Python Quick Start
Use the following code to solve this puzzle directly:
import puzzlekit
# Raw input data
problem_str = """
6 7
1 1 1 1 1 2 2
1 4 4 4 1 1 2
5 5 4 4 4 3 2
6 5 5 7 3 3 2
6 5 6 7 7 3 2
6 6 6 7 7 3 2
"""
# Solve
res = puzzlekit.solve(problem_str, puzzle_type="lits")
# Print solution grid
print(res.solution_data.get('solution_grid', []))
# Visualize (optional)
res.show()