
James G. answered 07/28/17
Tutor
4.9
(1,012)
Skilled at programming and problem solving
Based on understanding the game you need to figure out how you represent the game state both visually and internally. You have two potential kinds of players, a person or the computer. For persons that are playing you need a way to ask the user for a move, the player must be identified if more than one person is playing. You would use the rules and the current game state to accept only valid moves. You also need to keep track of who's turn, and identify when someone has won. If only people are playing then that is all that is needed.