Question
PLEASE ANSWER THIS IN MATLAB. NOT IN C PLUS !!!!! BE 1500 Extra Credit Project: Darts Simulation Overview: In this project you will create a
PLEASE ANSWER THIS IN MATLAB. NOT IN C PLUS !!!!!
BE 1500 Extra Credit Project: Darts Simulation Overview: In this project you will create a program (script) that simulates a game of Darts. The program should display what each player hit with their darts each round and the current score until the game is completed. Background: A standard dart board has several scoring areas as displayed in the figure below. There are many types of games that can be played with a dartboard. You need to simulate one of the games that requires at least two players. Details about different dart games and how they are scored are available here: http://www.darting.com/Darts-Rules/. Different games have very different scoring, it is up to you to decide which game you want to implement. All games will be graded equally based on how accurately they simulate a game, using the rules on the above website. If you are completely unfamiliar with the game of darts, there are several videos available on YouTube by searching How to Play Darts. Program Structure: You will be provided with two 512x512 matrices that represent a dart board. The first includes the value for each wedge around the board, the value in the matrix is the wedge value (or zero if you are off the board). For instance, if you select a number in the upper middle of the board (i.e. location 100,256) the resulting value will be 20. The second matrix indicates where the rings are for single, double or triple. In this case, each location has a value of 1 for single rings, 2 for double ring, 3 for triple ring, and zero if you are off the board. You should use a random number generator to select one place on the dartboard, by row and column, which represents a dart throw. Your code must display where each dart hits (this can be done with text, it does not require a visual representation) for each round. Then display the current score for all players. This process should continue until the game is successfully completed. Since you are using random number generators and not incorporating any skill into the throws the game simulation will likely take many rounds. When developing your code it might work better to start with small goals before trying to let the simulation run for an entire game. Your code must also include at least one user defined function. Project Deliverables: 1. All code in a zip file 2. Instructions for running code (PDF): This document should assume that you have given the reader your code on a flash drive and explain all steps required to get from there to running the code. 3. Example output (PDF): This should be the entirety of the output created for one simulation (i.e. one time running the code). 4. Brief Report: In narrative form answer the following questions: a. What was most challenging about completing this project? b. Where did you go for help with this project? c. Would you recommend using this project again?
X Question You will be provided with two 512x for each wedge around the board, the value in the matrix is the wedge value (or zero if you are off the board). For instance, if you select a number in the upper middle of the board (i.e. location 100,256) the resulting value will be 20. The second matrix indicates where the rings are for single, double or triple. In 512 matrices that represent a dart board. The first includes the value tase, each location has a value of 1 for single ringes, 2 for double ring, 3 for triple ing, and zero f you are off the board You should use a random number generator to select one place on the dartboard, by row and colu which mn, represents a dart throw. This location will be the same for both data matrices. Your code must display (i.e. triple-14) where each dart hits (this can be done with text, it does not require a visual representation) for each round. Then display the current score for all players. This process should continue until the game is successfully completed. Since you are using random number generators and not incorporating any skill into the throws the game simulation will likely take many rounds. When developing your code it might work better to start with small goals before trying to let the simulation run for an entire game. Your code must also Include at least one user defined function that has both input and output Please write in in matlab code A standard dart board has several scoring areas as displayed in the figure below. There are many types of games that can be played with a dartboard. You need to simulate one of the games that requires at least two players. Details about different dart games and how they are scored are available here: Darts-RulesL Different games have very different scoring, it is up to you to decide which game you want to implement. All games will be graded equally based on how accurately they simulate a game, using the rules on the above website. NOTE: You will not get any points for the project if you simulate your own version of darts, you MUST choose a game from the website listed. If you are completely unfamiliar with the game of darts, there are several video's available on YouTube by searching "How to Play Darts" 20 1 5 18 Double ring 12 9 Triple ring Bullseye Bullseye 4 14 13 Outer 6 Inner 8 15
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