Simulate using matlab a casino style game

Assignment Help MATLAB Programming
Reference no: EM13805349

SCENARIO:

There are many "games-of-chance" in existence in the world and they can be found just about anywhere. From children playing snakes and ladders to multi-billion dollar casino operations. Your assignment requires you to simulate, using Matlab, a casino style game of chance. In theory these games are completely governed by the rules of probability and should be able to be simulated by the use of random number generators.

Your program should allow the user to enter an amount of money that they are going to "gamble", then based on the rules of probability and the rules of the game, their account should go up or down. The game continues until they run out of money or they quit.

Some games to consider:
Roulette
Poker
Fruit Machine / Slot Machine / One Armed Bandit.
Keno
Blackjack

Your game should include some kind of feedback so the player is encouraged to continue, for instance, if the game is poker, cards played to the player should appear on the screen at a speed similar to the normal dealing of cards (they don't need to be the actual image of a card - they could be, for example, the letters H-3 on a white tile indicating three of hearts). You could allow the user to arrange the cards they have been dealt.

Whichever game you choose, there needs to be a way to place a bet, the game should execute and the pay-off should match the normal rules of the game. If, for example, you choose roulette, the placing of bets is complex and requires a table. An image of the table could be displayed and the user can click on the location of the bet. The image should then reflect the location and amount of the bet.

Start your development by working out what you can do and what you cannot yet do. The generation of the random number for roulette and the payout decision is very simple but placing the bet is more complicated. Playing cards seems simple but each time you deal a card - it is no longer available to be dealt.


You will need to read up on the rules of your chosen game and understand how the game works and the probabilities of the various outcomes. You should "prove" the correct operation of your implementation of the game by running it a few thousand, or tens of thousands of times and recording the results for comparison against the expected probabilities. (do this bit automatically using a loop and variables to capture results)

Your program should interact with the user mainly through Matlab figures but the code does most of the work.

Reference no: EM13805349

Questions Cloud

Narrative about proposed research : Select an organizational issue, problem, or topic that you would like to research. Write a narrative about your proposed research. Include the following information:
Energy of an individual photon : Explain how can we figure out the energy of an individual photon by simply measuring the stopping potential
Part of the photo-electric experiment : Choose one part of the photo-electric experiment that cannot be explained by assuming that light is a wave. Why do we need the concept of light as a particle?
What is difference between coupon rate and the ytm of bonds : What is the difference between the coupon rate and the YTM of bonds? What factors will contribute to the riskiness of these bonds? Explain in detail your rationale.
Simulate using matlab a casino style game : Your assignment requires you to simulate, using Matlab, a casino style game of chance. In theory these games are completely governed by the rules of probability and should be able to be simulated by the use of random number generators
Do you agree with the jag officers final ruling : What view of the mind/body problem do you think is exhibited by Picard - Do you agree with the JAG officers final ruling
The mean price for a sample of h&r block retail customers : What is the probability that the mean price for a sample of 100 H&R Block retail customers is within $8 of the population mean?
Company strategic plan : Your manager tells you about a new department the company will be adding that is part of the company's strategic plan to enter a particular market segment. Your manager would like you to manage one of the teams in this new department. Your manager..
Building a multi-project battalion by leading upward : Read the case study titled "A Peaceful Evacuation: Building a Multi-Project Battalion by Leading Upward." before starting this assignment.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Plot with three different shading scheme (one plot per each

create two vectors X and Y of values from (-pi) to pr with a spacing of pi/10. Define the vector Z as: Z=(sin(sqrt(x^2+y^2)))/sqrt(x^2+y^2)

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Write a matlab code using for loop

Write a MATLAB code using "for" loop to compute y when n = 50,100 and 1000.

  Estimation of the rayleigh limit

Propose a method that would allow estimation of the Rayleigh limit experimentally - Rayleigh frequency resolution limit

  Random number generator to create a symmetric matrix

Use a random number generator to create a symmetric matrix - without using built-in MATLAB commands, using the Power Method in combination with the Method of Deflation, obtain the eigen values & eigenvectors of the matrix

  Using matlab draw an open-loop bode diagram and find the

an armature-control dc motor is used in a position control system. the transfer functions of the controller and process

  Anatomy of a machine

Need a Machine Learning application written in matlab to be able to predict, based on certain selected features of wine, which variants of wine are likely to score above a 5 out of 10 quality score.

  Matlab program to add all the elements of a matrix

Create a new vector, named vector2, containing only the elements in the even numbered positions from vector1. For example, if vector1 is [0 1 2 3 4 5 6], vector2 should be [1 3 5].

  Approximate the solution to the above initial value problem

1. dydt te3t - 2y 0 le t le 1 y0 0approximate the solution to the above initial value problem usinga modified-euler

  Create a script file for conversion of temperature

Create a script file for conversion of temperatures. Use the input function or menu function to allow the user to enter temperature scale of Fahrenheit, Celsius, Kelvin, or Rankine. If you are using the input function, tell the user to enter F for Fa..

  Boundary conditions for the finite element model

The computer program or the finite element model for one value of a and the excel file for finite element results processing;Boundary conditions for the finite element model

  write a function under the name "write2"

a)Write a function under the name "write2" so that it will save the diagonal component of the given matrix...

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