Well, once you have a basic understanding of 2d arrays, the rest of the program is just a bunch of if/else if statements and nested for loops.

As for a starting point, I'd recommend finding a good...