So I've decided that the next program that I'm going to make is a traditional checkered board game. The first thing that I knew I had to do was to display the board with the checkered pieces placed at the appropriate spots. The next thing I know I need to do is to set up the traditional rules of the game. What I'm asking is how should go about setting up the rules? should I do a separate class or a nested class? Much appreciated.
You could make a function to get the players input (player 1 one turn, player 2 the next) and then another function to validate the move, and any other sub functions you may need for additional rules.
I think I much rather use loops seeing as though as this is a big grid. Even though you're not allowing to move on every tile in checkers, that is still alot of tiles to check. Oh, and sorry for the late reply.