logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Abhilekh Nath DasComputer science
(/5)

743 Answers

Hire Me
expert
Hugh BulgerManagement
(5/5)

992 Answers

Hire Me
expert
Angel BoultonStatistics
(5/5)

868 Answers

Hire Me
expert
Mark MohammadPhilosophy
(5/5)

828 Answers

Hire Me
Others

how many dice rolls are made, and the final body part added to complete the beetle

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Task 2. Design, build and test (ILO2) Beetle is a simple dice game for one player. The aim is to collect all the body parts of a beetle. Rolling an unbiased six-sided dice, a 1 gives a beetle body, 2 gives a head, 3 gives an antenna, 4 gives an eye, 5 gives a mouth, and 6 gives a leg. The player must collect a beetle body before any other body parts can be added. The player must collect a beetle head before any antennae, eyes or mouth can be added. A complete beetle consists of one body, one head, two antennae, two eyes, one mouth, and six legs. (1) Implement this game as a Python function. Follow the steps and logic you take in a physical game. Your code should include enough print statements to generate a clear nontrivial example illustrating a play of the game, telling the story as the dice is rolled and the beetle body parts are assembled. Please provide both your code and the output from a sample run. [10 marks] (2) Modify your code to add at least three counts that effectively summarise a game, e.g., how many dice rolls are made, and the final body part added to complete the beetle. Use these summary counts to compare the original game descried above with the variant in which the player needs to build two complete beetles (while satisfying the precedence of body parts for both beetles). Also compare these with one further variant of the game of your choice. Explain carefully what steps you have taken to test your code (not just debugging). Please provide your updated code for the original game with counts and the two variants, together with output from sample runs of each and a comparison of counts in a table. [15 marks]

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme