I am trying to deal with an array on the Arduino which is dimensioned in basic like this.
DIM m(0 to 1, 0 to 2, 0 to 1, 0 to 2, 0 to 1)
and later used
IF ABS(m(p1, k1, p2, k2, 0) - m(p1, k1, p2, k2, 1)).......
I have never come across this before and would really appreciate some help.
For anyone interested it is for a game where the player can randomly choose 1 of 2 switches and the arduino will attempt to guess the next move. The output will be to a small servo indicating 0 to 100% of correct guesses.
The game and source code can be found at: