Pass in a parameter to set the square size for the puzzle. (Defaults to 4.) Arbitrarily limited to between 1 and 26. Yes, you can choose to solve a 1 element square puzzle, but it won't be very challenging. Accepts upper or lower case letters for columns. Disregards any out-of-range indices. Enter a blank or 0 (zero) to exit.
Goal
A B C
1 1 1 0
2 0 0 1
3 1 1 0
You
A B C
1 0 0 0
2 1 1 1
3 1 1 1
Turn 1: Flip which row / column? 2
Goal
A B C
1 1 1 0
2 0 0 1
3 1 1 0
You
A B C
1 0 0 0
2 0 0 0
3 1 1 1
Turn 2: Flip which row / column? 1
Goal
A B C
1 1 1 0
2 0 0 1
3 1 1 0
You
A B C
1 1 1 1
2 0 0 0
3 1 1 1
Turn 3: Flip which row / column? c
Goal
A B C
1 1 1 0
2 0 0 1
3 1 1 0
You
A B C
1 1 1 0
2 0 0 1
3 1 1 0
Hurray! You solved it in 3 turns.