Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ game Spider is a game involving a die and Hangman type game. It is 2 player

ID: 3541009 • Letter: C

Question

C++ game

Spider is a game involving a die and Hangman type game. It is 2 player game. In this game, each player tries to finish making a full spider before the other players and the rules are as follows: Each turn, the current player will roll one die. Depending on the number, the player will add a body part to their spider. If the player already has the maximum number of that part then their turn is over and no part is added. If a player rolls the number for a part but does not have another part that is required, then the player's turn is over and no part is added. If a part is added, the player rolls again and tries to continue adding parts until they are unable. A roll of 1 is for a body and only 1 body is allowed. A roll of 2 is for a head, only 1 head is allowed, and a body is required. A roll of 3 is for two legs, only 6 legs are allowed, and a body is required. A roll of 4 is for an eye, only 2 eyes are allowed, and a head is required. A roll of 5 is for a feeler, only 2 feelers are allowed, and a head is required. A roll of 6 is for a tail, only 1 tail is allowed, and a body is required. Whoever completes their spider first wins. Use classes and random generator

Explanation / Answer

not clear?

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote