1. Create a new Eclipse Java project.Call itTicTacToeFinal. Copythepackagegames.boardfromyourLesson5projectinto the new project. RenamethefileBoardGameTester.javatoTicTacToeGame.java. To do this,...


1. Create a new Eclipse Java project.Call itTicTacToeFinal.




  1. Copythepackagegames.boardfromyourLesson5projectinto the new project.




  2. RenamethefileBoardGameTester.javatoTicTacToeGame.java. To do this, select the file in the Project Explorer, then chooseRefactor > Renamefrom the main menu.




  3. IntheTicTacToeGame.javafile,intheTicTacToeGameclass, add a new method named getOutcome() that returns an Outcome enumeration. Use the winOrTie() method in the Lesson 2 graded project as a guide.




  4. InthetakeTurn()method,intheTicTacToeGameclass,usethe getOutcome() method to determine whether to continue the game.




  5. AlsointhetakeTurn()method,displayadialogmessagethat displays the winner or reports a tie when the game ends. When the dialog is dismissed, your program should terminate.




  6. IntheBoard.javafile,intheBoardclass,modifythecatchblock in the setCell() method, which you added in Lesson 5, to use a dialog box to display the error. The program should continue when the dialog is dismissed.




  7. Buildandruntheproject.Verifythatitworksasexpected.Don’t be discouraged if it doesn’t run as expected right away. Try tracing your steps and usingSystem.out.writestatements to figure out where you went wrong.



    provide the following two files:


    TicTacToeGame.jar


    TicTacToeGame.java



May 28, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here