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

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  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.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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