Create a menu-driven system to play 1 of 2 games

Assignment Help Computer Engineering
Reference no: EM132217461

ritten in C#

•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 <= 0, and the user loses if EP exceed 300.

Points should carry across games within the session. Potential extra, allow the user to stop playing the game between sessions and pick up where they left off

•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

Reference no: EM132217461

Questions Cloud

Provide a restful service which accepts as a post of json : Provide a RESTful service which accepts as a POST of JSON a list of enqueue and dequeue statements onto an in-memory job queue.
Analysis of the expected performance proficiency : An analysis of the expected performance proficiency for each of the five ACHE leadership and administrative domains
Consideration requirement in contract law : What are the differences between "VALUE" requirement for a holder in due course and "CONSIDERATION" requirement in Contract Law?
Charted data to make informed management decision : Analyze the given charted data to make an informed management decision related to the case study. Support your decision by referencing the data.
Create a menu-driven system to play 1 of 2 games : Create a menu-driven system to play 1 of 2 games, view the scoreboard, restart or exit the game.
What could be done to enhance moviegiong in theaters : Do you think television plays a greater role in uniting us as a culture or in separating us as individuals? How and why? Has this changed over time?
Evaluating prior team performance : Think about a recent team or group project you were part of. This could be a school-based project or a work-based example.
Display a message showing the account id and balance : Have a default constructor which sets the dBalance to 0.0 And a second constructor Balance which takes in an amount that Balance is set to.
How economics and personal lifestyle choice are involved : Prepare a 5- to 8-slide PowerPoint presentation with detailed speaker notes. If you first discuss options with your faculty member, you are also welcome to use.

Reviews

Write a Review

Computer Engineering Questions & Answers

  How many failed logons were detected

How many failed logons were detected? What was the date/time shown at the top of the IIS log file you captured at the end of Part 2 of the lab?

  List some examples of your own life experiences

Networks have changed the way we communicate and share resources in a number of ways. Shared resources are a definite advantage of networking.

  Your companys lan needs to be updated there are 30

your companys lan needs to be updated. there are 30 workstations 8 laptops and several peripherals such as printers.

  Define an element with a name of measurement

Define an element with a name of "measurement". Within "measurement", define a complex type. Within this complex type, define a choice with minOccurs and maxOccurs both equal to "1".

  Design of an operating system performance evaluation

The Design of an Operating System Performance Evaluation and Analysis - What is the significance of the topic as related to the field of computer science and industry?

  Write a program that repeatedly prompts the user to match

Using Java, write a program that repeatedly prompts the user to match a capital with the correct state from two checklists.

  Create a variable called price of type double

Write some c++ statements to create a variable called PRICE of type DOUBLE, show the user the prompt "Enter the price: ", read the value entered.

  Investigate the capabilities and limitations of kerberos

The Kerberos security model is a part of both the DCE and CORBA standard families. Investigate the capabilities and limitations of Kerberos.

  How would my print statement look like print statement

How would my print statement look like print statement to output float of x,y,z

  What are the security and privacy risks and vulnerabilities

What are the security and privacy risks and vulnerabilities in using the Internet? List some specific common attack strategies and describe how they work and their effects/consequences on the security and privacy.

  What benefits the network provide

Explain what kind of network you are on at work or at home. If you do not have access to a network, ask a friend or family member to explain the type of network they have access to.

  How you organize the folder structure is up to you

Inside of this folder (project_1), you can have one HTML - which must be named "1-home.html" and as many subfolders as you wish. How you organize the folder.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd