Fly By Night Games Company has decided to hire you to program their new board game...

70.2K

Verified Solution

Question

Programming

Fly By Night Games Company has decided to hire you to programtheir new board game simulator for the game “Chutes & Ladders”.The board has squares which are numbered from 1 to 100 and playershave counters which start on the theorectical square 0. The playerstake turns at spinning a spinner with the numbers 1 to 6 on it, andeach moves his or her counter forward the number of squarescorresponding to the number on the spinner. The first person toreach square 100 is the winner. The interest is caused by the factthat pairs of squares are connected together by \"ladders\" (whichconnect a lower-numbered square to a higher-numbered square) and\"chutes\" (which run from high to low). If a counter lands on thestart of a chute or ladder, the counter is moved to thecorresponding square at the end of the chute or ladder. Note thatlanding on the end square of a ladder or a chute has no effect,only the start square counts. If a player is on square 95 orhigher, then a spin which takes them past 100 must be ignored (forexample, a player on square 99 must ignore all spins which are not1) and the player should be told that the spin is ignored. Laddersand Chutes are shown in the tables below (on page 2). In C++, usingfunctions and loops: 1. Design your game so the user plays in thefollowing manner: Allow two players to play the game and ask theusers for their names. The player \"spins\" and is told the result oftheir spin. If they land on the start of a chute or ladder, theyare told about it. The player should be told where they end up. Theother player then spins. Once a player has reached 100, the gameends with an appropriate message. Then, offer to play again. 2.Note that once a player has reached 100, the game shouldimmediately end. The other player does not get another turn. 3.When your program starts execution, it needs to display a welcomemessage that describes the program to user in a short, but clearmessage. Blank lines appear before and after the welcome message tohelp user read the screen. In addition, goodbye message should bedisplayed to wrap up the program before exiting. Again, blank linesappear before and after the goodbye message to help user read thescreen.

Answer & Explanation Solved by verified expert
4.4 Ratings (663 Votes)
include include using    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students