B. User Manual

The games the team created of blackjack and over/under seven are only accessible on the software platform Matlab. The user must first download Matlab to play the final games. The user will also need to download and open in Matlab the deck of cards mat file for blackjack and the dice mat file for over/under seven. These files are available on the Fundamentals of Engineering 1181 Carmen page. After Matlab is downloaded, the user has to open the the software. Once the it is open, the user will be faced with a very confusing arrangement of windows. The only windows that are needed to play our games are the editor and command windows. The user can copy and paste the provided final code with comments into their editor window. The command window will be the area that the users commands are entered into. After familiarizing oneself with the platform, the user is ready to start. To start the game, the user needs to press the green play button in the upper middle of the screen. This process is the same for both games. However, after this point the instructions differ by game.

In the blackjack game, the user is shown the instructions and asked if they want to play after pressing the green start button. If the user wishes to play the game he/she must use his/her device’s keyboard to type 21 into the command window. If the user does not want to type he/she can type zero into the command window to immediately exit the code. After the desired number is typed into the command window the user must press enter on his/her keyboard for the code to react to his/her provided input. If the user elects to play, a figure will appear on their screen. This figure will display the dealer’s cards at the top, five cards in the middle, and the users two cards at the bottom. One of the dealer’s cards will be face-up and the other will be face-down. The five middle cards will all be face-down, and the user’s cards will both be face-up. After the user sees his/her cards, the command window will ask the user if he/she wishes to hit or stand. A hit would cause one of the cards in the center to be flipped over and its value added to that of the user’s cards. The center card that is to be to be flipped starts with the card furthest to the user’s left and works to the right. The user can hit a maximum of five times. However, if the user’s total card value exceeds 21 the game exits and the user is informed that they busted. This means that the dealer wins. If the user elects to stand the code will end and the user will see their final score as well as the final score of the dealer. Whether the user hits or stands, the dealer must continue to hit until his/her value is greater than 17. If the dealer’s score exceeds 21, the code exits and the user is informed that the dealer busted and he/she has won. At the end of the game, the user is able to view both of the dealer’s cards. After the game, the user can play agian by pressing the green start button and following the instructions.

In the over/under seven game, the user is shown the instructions to the game and informed on how to exit the game. Then the code asks the user to input the amount of money he/she wishes to start with. At this point, the user may enter any numerical value into the command window. After the desired number is typed, the user must hit enter to proceed. The game will then ask the user how much money he/she wishes to bet on the current round. The user must then enter the fraction of his/her money he/she wishes to bet on the current round. After the user enters a numerical value and presses enter, the game will ask the user what he/she wishes to bet on. The user has three different options to bet on: the added dice values will be more than 7, the added dice values will be less than 7, and the added dice values will be exactly seven. The over/under bet, if correct, will cause the user to win double the amount of money he/she bet. If the user bets on exactly seven and is correct, he/she will win four times the amount he/she bet. After the user places his/her bet, a figure will appear that displays the resulting dice values. The command window will display the final value of the two dice together, if the user won or lost, and the resulting amount of money the user now possess. If the user still has money, the code will return to the top and as for the amount the user wishes to bet. After it is started, the game will only stop once the user has run out of money, or when the user types the number zero into the command window when the game asks how much the user wishes to bet.