Solves the Disconnect Four puzzles from the iOS app Logic Games. Uses brute force to solve.
Disconnect Four is a puzzle that requires the player to fill a board with red and yellow pieces such that there are no four-in-a-row's of either color. It's like the goal is to play Connect Four and end in a draw.
After running the program, enter the size of the board. Click to alternate tiles between red, yellow, and blank. Hit enter to solve the problem.