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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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