Each tile can either be on or off, true or false, 1 or 0, take your pick just realize there are two and only two options.
(For simplicity in creating this puzzle I will be useing 1 and 0)
When you hit a tile the tile you hit, and EVERY adjacent (not including diagnols) tile is changed to the other value, you do not wrap around if you should be flipping a tile not on the grid. For example if you hit a corner EXACTLY 3 tiles flip.
Solve this size 4 grid (make every tile 1) ... or prove that it can't be solved
[1][1][1][1]
[1][1][1][1]
[1][1][1][1]
[1][1][0][1]
I'm writing java code to solve any grid of size n, just to familiarize myself with the language some. I've gotten all grids of size 3, this is just the last piece I need for size 4, and I can't figure it out. I will probably also post more problems as I come across them.
Hitting these tiles flips ONLY the four corners
[0][0][0][0]
[1][0][0][1]
[1][1][1][1]
[1][1][1][1]
Hitting these tiles flips the entire board
[0][1][0][0]
[0][0][0][1]
[1][0][0][0]
[0][0][1][0]
Question
Guest
A grid of size n is made up of n x n tiles.
Each tile can either be on or off, true or false, 1 or 0, take your pick just realize there are two and only two options.
(For simplicity in creating this puzzle I will be useing 1 and 0)
When you hit a tile the tile you hit, and EVERY adjacent (not including diagnols) tile is changed to the other value, you do not wrap around if you should be flipping a tile not on the grid. For example if you hit a corner EXACTLY 3 tiles flip.
I'm writing java code to solve any grid of size n, just to familiarize myself with the language some. I've gotten all grids of size 3, this is just the last piece I need for size 4, and I can't figure it out. I will probably also post more problems as I come across them.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.