|
Wyo Java Ch13Proj1 |
|
Write a game of Tic Tac Toe using the TicTacToeStarter file found in the Ch 13 Handout folder. The program must allow a human user to play against the computer with the user being x's and the computer o's. The user should go first. Add the following features for full credit: computer moves are random, the user's inputs are validated to ensure that the position is legal and not already taken, game ends when appropriate and announces who the winner was or if the game ended in a draw. The program must display the board after each player makes his move. After each game is over, the user should be asked if he would like to play again or not. If he would like to play again, the player who did not go first in the previous game should now go first in the new game. But the computer should always remain o's. For additional credit, improve the user interface by making the game look better, perhaps with the traditional gridlines as in rather than the line outputs in the starter file. For additional credit, you can also add "artificial intelligence" to the computer so that it blocks the user's attempts to win and is unbeatable. This assignment will be graded on style, efficiency, and a curve based on how much "additional credit" you receive. Your program must follow the class Coding Standards. Save all of the files associated with this assignment to a folder named Ch13Proj1 in the appropriate network folder. Preconditions:
You must hand in the following on separate pages stapled in this specified order:
|