Students Activity 1
For this activity assignment you will change the game to be a human player against the computer. To do so, the game should perform the following:
Allow the human player to choose if he/she wants to play the X or the O
The human player will go first, then the computer will go next and they alternate taking turns until there are no more moves or the human player enters a '0'
The computer doesn't need to be "smart" at this phase of the game development (i.e. the computer can just choose to play in any available spot).
EXTRA CREDIT (50 points):
If you finish the basic requirements above and would like to take your game to the next level, how about you add some "smartness" to the computer player. The computer can choose to play in winning spots or play as a defender or a mix of the two strategies, you get to choose the strategy you want the computer player to approach.
Last updated
Was this helpful?