Solving Flip It: How Can I Solve the Game Using Mathematical Equations?

  • Thread starter Thread starter TylerH
  • Start date Start date
  • Tags Tags
    Game
Click For Summary
The discussion focuses on solving the game Flip It using mathematical equations. The original pattern is represented by a matrix A_{5,5} over integers modulus 2, with the goal of transforming it into a matrix M_{5,5} of all 1's. The solution matrix B_{5,5} indicates how many times each square must be clicked, defined by a specific equation involving neighboring squares. A correction was made to the initial equations, clarifying that the equivalences should include additional terms for each square's contributions. The thread seeks methods to solve the modified equation for all coordinates in the matrix.
TylerH
Messages
729
Reaction score
0
Solving Flip It, the Game

I've formulated the game Flip It(http://www.coolmath-games.com/0-flipit/index.html) into mathematical terms and a system of equations that solve for the solution matrix(the matrix of how many times each square must be clicked to solve from a given beginning.

Let A_{5,5} be a matrix over the integers modulus 2 that represents the original pattern with 1 being white and 0 being black.

Let M_{5,5} be a matrix over the integers modulus 2 that represents the matrix we want (to solve, this would be all 1's).

Let B_{5,5} be the solution matrix, the number of times each square must be clicked, be defined by the equality m_{x,y}=b_{x,y} a_{x,y}+b_{x+1,y} a_{x+1,y}+b_{x,y+1} a_{x,y+1}+b_{x-1,y} a_{x-1,y}+b_{x,y-1} a_{x,y-1}.

How do I solve m_{x,y} \equiv b_{x,y} a_{x,y}+b_{x+1,y} a_{x+1,y}+b_{x,y+1} a_{x,y+1}+b_{x-1,y} a_{x-1,y}+b_{x,y-1} a_{x,y-1} \: mod \: 2 for all x,y in [1,5] (intersected with the integers, of course)?
 
Last edited:
Physics news on Phys.org
TylerH said:
I've formulated the game Flip It(http://www.coolmath-games.com/0-flipit/index.html) into mathematical terms and a system of equations that solve for the solution matrix(the matrix of how many times each square must be clicked to solve from a given beginning.

Let A_{5,5} be a matrix over the integers modulus 2 that represents the original pattern with 1 being white and 0 being black.

Let M_{5,5} be a matrix over the integers modulus 2 that represents the matrix we want (to solve, this would be all 1's).

Let B_{5,5} be the solution matrix, the number of times each square must be clicked, be defined by the equality m_{x,y}=b_{x,y} a_{x,y}+b_{x+1,y} a_{x+1,y}+b_{x,y+1} a_{x,y+1}+b_{x-1,y} a_{x-1,y}+b_{x,y-1} a_{x,y-1}.

How do I solve m_{x,y} \equiv b_{x,y} a_{x,y}+b_{x+1,y} a_{x+1,y}+b_{x,y+1} a_{x,y+1}+b_{x-1,y} a_{x-1,y}+b_{x,y-1} a_{x,y-1} \: mod \: 2 for all x,y in [1,5] (intersected with the integers, of course)?

I screwed up; both of those equivalences should be: m_{x,y} \equiv b_{x,y}+a_{x,y}+b_{x+1,y}+a_{x+1,y}+b_{x,y+1}+a_{x,y+1}+b_{x-1,y}+a_{x-1,y}+b_{x,y-1}+a_{x,y-1} \: mod \: 2
 
Thread 'How to define a vector field?'
Hello! In one book I saw that function ##V## of 3 variables ##V_x, V_y, V_z## (vector field in 3D) can be decomposed in a Taylor series without higher-order terms (partial derivative of second power and higher) at point ##(0,0,0)## such way: I think so: higher-order terms can be neglected because partial derivative of second power and higher are equal to 0. Is this true? And how to define vector field correctly for this case? (In the book I found nothing and my attempt was wrong...

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
Replies
1
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K