Slant Lines: counting the corners, the no-loop rule, and the three deductions that solve every board
Put a \ or a / in every square. Each corner number says how many lines touch that corner, and the lines may never close a loop. The puzzle is known as Gokigen Naname, and every board has one answer that pure logic reaches. We solved levels 1 to 16 (5 × 5 up to 7 × 7) with our own solver using only the rules below, entered the lines with the keys and finished each in 3 to 5 seconds of input, three stars and no hints. To see the loop rule, we also deliberately closed a small diamond on level 3.
The rules on the board
A corner's number is how many of the up to four lines around it point into that corner.
Lines may not close a loop. The moment they do, every line in the loop glows red (Loop!, Rule broken!).
Corner numbers turn green when met and red when they can no longer be met.
Level 3: four lines closed into a diamond, which glows red; the 1 clues it touches turn red too. Loop!
Three deductions
The first two deductions finish the early boards; larger boards need the third more and more often.
Counting: a 0 means no line touches the corner, so all its squares go the other way. A 4 means all four touch. On the edge, a 1 or 2 often fixes the squares outright.
No loops: if one choice in a square would close a loop with lines already placed, the other choice is forced.
Try the other way: if putting the other line in a square would make some corner impossible or close a loop a step later, the square is decided. The game's own hint calls this Other way breaks.
16 grids filled in under five seconds each
Levels
Size
Clues (of corners)
Input time
Stars
1 to 5
5 × 5
12 to 14 of 36
3.2 to 4.0 s
3
6 to 12
6 × 6
15 to 23 of 49
3.9 to 4.0 s
3
13 to 16
7 × 7
24 to 28 of 64
4.8 to 4.9 s
3
Level 14, half the squares filled: 14 of 24 clues are already met and show green.
Levels, stars and controls
36 levels from 5 × 5 to 9 × 9.
Filling a grid without hints keeps three stars, with up to two hints two, otherwise one.
Tap a square to cycle \, / and empty. Keys: arrows move, Space cycles, 1 or \ sets \, 2 or / sets /, 0 clears, U undoes, H hints.
Level 16: three stars, 222 points.
Questions
Why did my lines turn red?
They closed a loop, which the rules forbid. Change one of the red lines.
Is there always a unique answer?
Yes. Every level was built so that logic alone solves it to the end, which also proves the answer is unique.