Create an array to be used as the playing board

Assignment Help C/C++ Programming
Reference no: EM131497558

Assignment

INTRODUCTION: Play sorry with two die, and one peg. Move your piece down the board first. But rolling certain numbers will change the pace of the game.

ASSIGNMENT:Sorry Game

1.To play "Sorry", you'll need to create up to Four players.

Prompt the user for the number of players (2-4).

2.Create two die for the players to roll.

3.Create an Array to be used as the playing board, having 50 spaces.

With 50 being the winning space.

4.Now the dice have special conditions:

2 = Move two spaces
3 = Move three spaces
4 = Move back one space.
5 = Move five spaces.
6 = Move six spaces.
7 = Swap spots with the leading layer / or nothing if player is in lead.
8 = Move Eight spaces.
9 = Move nine spaces.
10 = Move ten spaces.
11 = Swap spots with the last player / or do nothing if player is last.
12 = Start Over

5. A player must roll a double to start.

6. If a player lands on the same space as another, the other player must return to the beginning.

Example: If P1 lands on a space where P3 is, P3 would go back to the start.

7.A player must roll an EXACT number to enter the winning space.

8.Use a random Generator to "roll" the dice, the user must press enter to roll.

9.Once a player finishes, create a winning message announcing the winner.

10.Then ask the user if they would like to play again.

11.You must use at least three functions. Some function examples could be:

Roll dice, check for other player (when moving), display board.

12. Display the status/location of the players between sets of rolls.

13.Depict aPlaying Boardon the screen and display the Players' position on the board.

(maybe try using a method to create the board and screen each time a player moves)

14.If a player rolls a double, they'll get another roll.

15.If a player rolls two doubles in a row, they Start Over.

Reference no: EM131497558

Questions Cloud

Discuss impacts of psychological make-up of offenders has : Discuss the impacts of the psychological make-up of offenders has on the functional responsibilities of incarceration facilities.
Research the topic and discuss the auditing issues : Auditing, Assurance & Services ACC707 Individual Assignment. Also, state clearly what the auditor of Lehman Brothers would have disclosed in "Key Audit Matters"
What is the maximum speed of the scraper : The scraper whose performance curve is shown in Figure is operating at an altitude at which the derating factor is 10%. The scraper is operating up a grade.
Should old joint former be replaced within next three years : A joint former cost $ 60 000 to purchase and $ 100 000 to install seven years ago. Should the old joint former be replaced within the next three years?
Create an array to be used as the playing board : Play sorry with two die, and one peg. Move your piece down the board first. Create an Array to be used as the playing board, having 50 spaces.
How many hours should it take an articulated wheel loader : How many hours should it take an articulated wheel loader equipped with a 4-yd (3.06-m3) bucket to load 3,000 cu yd (2294 m3) of gravel from a stockpile.
Financial analysis-taxes and cash flow : Lecture concepts: Financial statements and financial analysis, Taxes, and Cash Flow
Estimate the scraper travel time : The tractor-scraper whose travel-time curves are shown in Figures hauls its rated payload 4000 ft (1220 m) up a 5% grade from the cut to the fill.
The investor need to take in stock to hedge this position : What position would the investor need to take in the stock to hedge this position? What is the value of each option using no-arbitrage arguments?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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