Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me with this problem in C. Project Description: In this Project, you will write a C program to create a simple version of
Please help me with this problem in C.
Project Description: In this Project, you will write a C program to create a simple version of the Game of the Goose using 24 spaces and a two-player genle mode. Player I will be the human player player 2 will be the computer. When running the program, the user will be asked to enter an integer nurnber, which will be used as a seed for the generation of randorn nurnbers when rulling the clice. Then, your prgran prints a welccrne menu displaying two options: 1) Press 'P' or y' to play or 2) Press '' urly lo quil. If the selected option is to play the game, the players should roll the dice (press cuter) to determine which player should go first. The player who gets the highest value will go first in the game. Here is an example: HUMAN DEVER, centar Al! the dich 6 .nd 2 For a 6 COMPITER DAYRR, TT293 CALA 1:11 he dice and cor as HUM E R e rir If there is a tie determining who goes first (i.c. both the Human and Computer roll the same value), a message is printed staring 50, and the process is repeated until two different values are rolled. The highest roll then goes first. After determinini wbicbpliver goes first 24 species are displayed in two lines, each represented by a number enclosed in suare brackets (12 punibers in teach line and separated by tabs. The only exception is the last spice which doesn't use bricket but insteal is clisplayed is 24>. A character he le murder indicale inal it is a special p e. A gray is represenle by +, the bridge by 13. maza by all the skull by '!. The following table inclicles The special spaces: Symbol Spaces Action goose 7,11,15 move your picce again by the same distance bridaco 20 to space 12 maze 13.20 go back to your previous space skull 23 return to the beginning The characters 'S iod 'S' are used to represent the pieces of human and computer player, respectively. When it player lands on a space, the spice number is NOT displayed but only the player instead. If both players are in the side space, human's character is always shewn first. Playing the game: After selecting play in the main menu the goose board is displayed with both players' pieces in the start position. Below the board, a message is displayed indicating which player will next roll the dice (assuming a player didn't win the previous roll). This information should be shown in a manner similar to: [HUMAN/COMPUTER] PLAYER'S TURN, [current space]... Press
Step 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