Question
RUBY QUESTION!!!! The object of this game is to guess the word or phrase by selecting one letter at a time until the entire word
RUBY QUESTION!!!!
The object of this game is to guess the word or phrase by selecting one letter at a time until the entire word is displayed.
There is file of short phrases that you will load into an array. You must use this file.
You must display a string that shows the player how many characters are in the phrase.
(Count each letter and space and display the positions such as _ _ _ _ _ _ _ _ _ (sample only)
Each time the player gets a letter right you will redisplay the above with the matching letter(s) filled in
Example: R _ B Y _ _ F _ _
Then if another letter is guessed display the solution with the correct letters that have been guessed
R U B Y _ _ F U _
******************************
There are two players
You may assign them names or just call them Player One and Player Two
When it is Player Ones turn you will randomly assign a point value for each letter that he guesses correctly. It will continue to be his turn until he guesses a letter that is not in the word or phrase. (dont change the point value until they guess a letter that is not in the word.)
Then it is Player Twos turn. This player will continue with the word/phrase that the last Player started with and can continue guessing letters until there are none to guess or the player asked for a letter that is not in the phrase.
If a player guesses a letter that is not there the point value for the next players guess will be altered with a random number.
The total that a player scored will continue to be accumulated
Do not submit the phrase file with your program I have a copy.
Once the entire word is completed the person with the highest number of points wins.
You may approach this in different ways.
You are not constrained to only doing it one way but must have all the requirements met
REQUIREMENTS: Total 200 points
1. Your Name | 5 |
2. A complete algorithm that matches the requirements and code. | 40 |
3. Comments in program | 5 |
4. Must use at least one class (will have multiple methods) | 15 |
5. Must use at least one Array | 10 |
6. Choose a random number for points per letter guessed right before the first guess | 10 |
7. Change point values of guessed letters before the next player guesses a letter (A player will have the same point value until their turn is over. And then when it is their turn again a new point value will be generated.) | 10 |
8. Make sure that you display all directions to the user clearly | 20 |
9. Provide a total score for each player at the end and indicate who wins. | 15 |
10. Program works! | 70 |
A Fish Out of Water Good Neighbors Cry Me A River Sugar Cookies with Sprinkles Vintage Car Show
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started