Working with arrays from QBASIC.

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:

http://www.loper-os.org/bad-at-entropy/manmach.html

What have you tried? C and C++ do not allow you to bound the values that can be placed in the array.

DIM m(0 to 1, 0 to 2, 0 to 1, 0 to 2, 0 to 1)

In C/C++ that would be a five dimensional array with standard indexing.

Assuming an integer array:

int m[2][3][2][3][2] = { 72 values};