My roommate's computer desk has a paper on it with these 3 weird grids and drawings. I know that he is trying to learn to write computer code and he likes making old video games as a way to learn. I'm an experienced game designer so sometimes I like to look at his notes and see if I can figure out what he is working on. This one really has me stumped, though. So I come to you, dear Puzzling StackExchange, for your insights!
The first scribbled note was this:
| 0 | +1 | +2 | +3 |
---------------------
| -1 | 0 | +1 | +2 |
----------o----------
| -2 | -1 | 0 | +1 |
---------------------
| -3 | -2 | -1 | 0 |
He had this written in a 4x4 grid with a scribbled dot in the center.
Then there was another grid:
| +3 | +2 | +1 | 0 |
---------------------
| +2 | +1 | 0 | -1 |
----------o----------
| +1 | 0 | -1 | -2 |
---------------------
| 0 | -1 | -2 | -3 |
and a final grid that seemed to link them.
| +3 | +1 | -1 | -3 |
---------------------
| +3 | +1 | -1 | -3 |
----------o----------
| +3 | +1 | -1 | -3 |
---------------------
| +3 | +1 | -1 | -3 |
There are a couple of functions/equations here, too, but I'll post those as spoilers if no one gets this in a week.
What is the game he is working on? What are the three grids for?
A partial answer to the bonus question has been given below (3 functions)
Bonus question: What are the 2 equations?
Note: For the equations there could certainly be some variation in correct answers. Maybe you'll come up with 1 function that is as good as both functions, or maybe you'll find three useful functions. The bonus question is essentially just, "how do these grids aid in writing a function for this game?"
Update 2/4/17
As promised, here are the functions that he wrote down by the matrices.
(g') = c - r
(g'') = (g''') + (g')
(g''') = 3 + (c * 2)
Hints
Direction: (Helpfulness level: 1)
CW
Grid Titles: (Helpfulness level: 2)
Grid 1: Rows. Grid 2: Columns. Grid 3: Difference
Help with the equations: (Helpfulness level: 5)
g' = grid 1
g'' = grid 2
g''' = grid 3
Comments regarding posted answers thus far: (Helpfulness level: 8)
Ryan:
Correct, 180 degrees isn't a move in this game, so that's not the meaning of that grid. And the way I look at it, the third grid doesn't really rotate it at all, but rather mirror it in the vertical axis ... although that is not actually really what the third grid is for either. The 3rd grid is explained by the (g''')
Asteria:
I think the thing you need to look at is the titles of the grids. What is the number in each cell in your calculation? +3 means what in the first grid? Second Grid? 3rd Grid? They don't all mean the same thing :) You guys are getting close!