Question
written in C# FLOWCHART NEEDED for game 2 This is what i have done Create a menu-driven system to play 1 of 2 games, view
written in C# FLOWCHART NEEDED for game 2 This is what i have done
Create a menu-driven system to play 1 of 2 games, view the scoreboard, restart or exit the game
The children (computer) start with 200 energy points (EP), and any points the babysitter (user) wins or loses are subtracted from EP. The user wins when EP
1st game: CODE IS ALREADY WRITTEN
2nd game: user plays the computer in a game of Mother, May I
Before the user starts a game, display the rules for that game
As the user finishes each game, the user should have the option to play again or return to main menu
_________________________________________________________________________________________________________________________________________
MOTHER MAY I GAME
The object of the game is to take as many steps as the player can towards Mother who is 21 steps away. If the player takes any more than 21 steps, they are busted for sneaking around and lose the game.
Played using a 10-sided die (numbers 0-9)
User starts his/her turn rolling the die twice and adding up the numbers to get how many steps he/she can take towards Mother (rolling a 0 adds 10 steps to the turn)
After the initial two rolls, the user may choose to roll an additional 6 sided die as many times as he/she wishes to take further steps towards Mother
If the user takes more than 21 steps, he/she is busted and loses 21 points. In this case, the computer automatically wins 17 EP and does not have to play.
User can end his/her turn at any time.
Up to 21 EP are given (1 for each step) for the winner of each game
_____________________________________________________________________-
The computer will always take its turn last, after user has settled on his/her score
The computer does not have to play a hand if the user gets busted
When playing its own hand, the computer must stop taking steps/rolling the dice when it has taken 17 or more steps. The computer must continue rolling a die until its total equals 17 or greater. If the computer busts (takes over 21 steps), the player wins
The computer wins all ties, unless the player gets a perfect 21 steps
At the end of the game, the user should be able to choose to play again or return to menu.
Potential extra:
Allow a 1 to be a 1 or 11
User gets to choose, computer will always choose 11 unless that would cause it to get busted
Game 1 rules num Sticks How many pickStick 20 and K-100, umStic and 4 0 2 LL E numstick pick stick nCompute num Stick Game 1 Start Game 1 or game 2 Game 2 Game 2 rulesStep 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