..........................................
Printable View
..........................................
I'm not sure what your actual question is. Are you just asking how to do a for loop? If so, read this: The for Statement (The Java™ Tutorials > Learning the Java Language > Language Basics)
And I don't really see a benefit to storing past moves in a two dimensional array. Just use a List.