Your assignment requires you to simulate using matlab a


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.

Request for Solution File

Ask an Expert for Answer!!
MATLAB Programming: Your assignment requires you to simulate using matlab a
Reference No:- TGS01085606

Expected delivery within 24 Hours