I am making a snake game (just in command prompt) and I want to setup a grid that has kinda x and y values like a matrix.
1 2 3 4 5 6 7 8 9 10
1 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0 0 0 0
5 0 0 0 0 X 0 0 0 0 0 <--- lets say the int x and y are here
6 0 0 0 0 0 0 0 0 0 0 at 5,5
7 0 0 0 0 0 0 0 0 0 0
8 0 0 0 0 0 0 0 0 0 0
9 0 0 0 0 0 0 0 0 0 0
10 0 0 0 0 0 0 0 0 0 0
How would i setup this matrix and move the variables around?