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

  • Thread starter Thread starter TylerH
  • Start date Start date
  • Tags Tags
    Game
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 'Derivation of equations of stress tensor transformation'
Hello ! I derived equations of stress tensor 2D transformation. Some details: I have plane ABCD in two cases (see top on the pic) and I know tensor components for case 1 only. Only plane ABCD rotate in two cases (top of the picture) but not coordinate system. Coordinate system rotates only on the bottom of picture. I want to obtain expression that connects tensor for case 1 and tensor for case 2. My attempt: Are these equations correct? Is there more easier expression for stress tensor...
Back
Top