Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a menu system that allows the player to select various options, similar to below LET'S PLAY WORD MORPH GAME SCORE: 0 3 - Three

Create a menu system that allows the player to select various options, similar to below
LET'S PLAY WORD MORPH
GAME SCORE: 0
3- Three-Letters
4- Four-Letters
5- Five-Letters
T - Two-Player mode
Choose:
The menu system is initially displayed as above, allowing the player to pick how many letters to play in the game.
Options 3,4,5 will use the Words class to randomly generate the apropriate word lists and randomly selected words for the game.
Two-Player mode will ask the user to provide two words of equal length (the Words class will not be used to generate the random strings for start_word and end_word)
Once the player has selected a game option, the round will run allowing the player to play the game (similar to the gameplay in Milestone 2).
Upon completion of each round, the player is asked if they want to play another round. If the user chooses to, then the menu above is displayed again allowing the user to choose their gameplay. If the user chooses not to play another round, then the game is over, and the program terminates normally. Example below:
Morph KAB to OIL
GAME SCORE: 0
Moves: 5
KAB
1 LAB
2 TAB
3 NAB
4 NIB
5 NIL
OIL
What is your next word? oil
ROUND COMPLETE - Play again?
As more and more rounds are played, the game score should automatically accumulate and display the total score.
HINT: The init() function of the WordMorph class allows you to reset the various game counters allowing the player to play a new round. This method of reinitializing the game also allows the game score to accumulate.
EXTRA CREDIT/CHALLENGE: At the end of the round, when the user is done playing, ask the user to enter their initials. Then, save the player's initials and their final game score into a file. Display an arcade-style list of players and their scores (HINT: Read from the text file). MORE HINTS: Create load() and save() functions to the WordMorphConsole class for the reading and saving of the players scores.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions