Question: Let's return to the tic-tac-toe game you created in the previous lab. This time, you'll create a new class, MiniBoard, that subclasses TTTBoard and overrides

 Let's return to the tic-tac-toe game you created in the previous

Let's return to the tic-tac-toe game you created in the previous lab. This time, you'll create a new class, MiniBoard, that subclasses TTTBoard and overrides getBoardStr() to provide a smaller drawing of the tic-tac-toe board. The program will ask the player which board style to use. You don't need to copy and paste the rest of the TTTBoard methods because MiniBoard will inherit them. When you run the program now, the output will look something like this: Welcome to Tic-Tac-Toe! Use mini board? Y/N: y ... 123 456 789 What is X's move? (1-9) 1 X.. 123 .:. 456 ... 789 What is O's move? (1-9) --snip-- XXX 123 .00 456 0.X 789 X has won the game! Thanks for playing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!