I could do that... Thanks for the idea, Mateo!
I have created a 12x12 board. While I have created a 12x12 matrix, and figured out how to store stuff in there, how can I get the calculator to test to see if a 0 (which means that it is a empty space) is completely surrounded by 1's(for player 1) or 2's(for player 2)?
For example:
[0 1]
[1 1]
How can I get that 0, which is surrounded by 1's(by player 1's pieces), change to a 1? And, as a matter of fact, how can I have it do the same if it was surrounded by 2's(player 2's pieces)?
Just for reference, on the game board, this would be the upper left hand corner being surrounded.
I have (sort of) found a solution to this problem. Here's the code:
Code: 0->P
Repeat K=45
getKey->K
ClrHome
Output(1,23,sub("12",P+1,1
Output(1,15,"PLAYER
Input "ROW:",Q
Input "COLUMN:",C
If Q>12 or C>12:End
P+1->P
P->[A](Q,C)
[A](Q,C)->A
[A](Q+1,C)->B
[A](Q,C+1)-D
[A](Q+1,C+1)->E
If A=B and A=D and A=E and P=1:Then:M+1->M
End
If A=B and A=D and A=E and P=2:Then:N+1->N
End[/b]
P-1->P
C x 2->C
10(Q)->R
10(C)->V
For(X,0,4
For(Z,0,4
Pxl-On(R+X,V+Z,10+P
End:End
What this makes me do, however, is put three dots around (1,1), and then put the dot at (1,1). I want it to detect the three other spots already there.
The order it goes in is this:
(2,1),(2,2),(1,2) and then (1,1) .
The order I want it to go in:
(1,1),(1,2),(2,2),(2,1).
If you need a reference, look at the board above, in the first post that I made.
Can someone please help?