User manual

_____________________________________________

Loading the game and Main Selection Area

 

Loading the game:

In order for the game to run properly, all files for the game must be located in the same folder. To start the game, the player must run the sdp.m file in the MATLAB window.

 

Getting into the Casino and selecting a game:

When the player loads the game, they will be prompted to input a balance before entering the casino. This value must be a positive whole number in order to proceed. If the player does not input a proper value, they will be notified and re-prompted to input a balance.

Once in the Casino, the player will be located in the Main Selection Area. From here, the player can select which game they would like to play by inputting “1” for Craps “2” for Blackjack or “3” to leave the casino. Once the player makes a selection, they will be shown the rules to the game and allowed to proceed.

 

Playing The Games

Betting:

Before the start of each game, the player will be prompted to place a bet. If the player does not have enough money to place the minimum bet, they will automatically leave the game before play begins. If the player has enough money to play, they will automatically bet the table minimum. From the betting area, the player can increase their bet by typing an integer value into the command line. This value will be added to their previous bet. If a player types 5, 5 coconuts will be added to their bet. The betting prompt is displayed multiple times during the game of Blackjack in order to double down after being dealt a hand.

 

Craps:

Once the player has placed their bet, they must press enter to roll the dice. Their roll is displayed as a figure containing images of 2 dice. This roll determines weather the player has lost or won. The player can win on roll 1 by rolling a 7 or 11. The player canĀ  lost on roll 1 by rolling a 2, 3, or 12. If the player does not win or lose on the first roll, their roll is called their point and is used for the rest of the game. For the rest of the game, the player will attempt to roll their point while avoiding rolling a 7. if the player rolls 7 or their point, the game ends and the player will receive their winnings or have their bet subtracted from their balance. At this point the player can chose to play again or return to the Main Selection Area.

 

Blackjack:

Once the player has placed their bet, they will be dealt a hand. This hand is shown as a figure on the screen. The player will always be able to see all of the cards in their hand while in play. Figure 1 shows the player’s hand. Figures 1 and 2 show the player’s hand when split. The dealer will have one card concealed at all times during play. Figure 2 shows the dealer’s hand. Figure 3 shows the dealer’s hand when the player has split. Based on the player’s initial hand, it will be determined whether or not the player has be dealt Blackjack. if the player has Blackjack, they automatically win and the game ends. If the player has not won, they will enter a loop where they are prompted to made decisions based on their hand. The first possible prompt is a split. If the player has a hand that allows them to split, the game will ask the player if they would like to split. If the player splits, they will be given 2 hands to play with and will not be allowed to double down on either hand. If the player has not split, they will be prompted to double down on their hand. From here, the player can increase their bet to as much as 3 times their initial bet. After splitting or doubling down, the player will be allowed to hit until they reach 21, stay, or bust. Once the player has reached 21, stayed, or busted on their hand(s), the dealer will play. After the dealer plays, the player hand(s) and dealer hand will be compared to see who won. After the player wins or loses on their hand(s), they will receive their winnings or have their bet subtracted from their balance. At this point the player can chose to play again or return to the Main Selection Area.