B. User Manual

Connect 4

To play Connect 4 you must first open the file Connect4.m in MATLAB and click the ‘run’ button. A board will appear along with a message box that asks Player 1 to choose a column. Player 1 must select one of the columns. A black checker will appear in the lowest available row in the the column they selected. Player 2 will now be prompted to do the same. When Player 2 has selected a column, a red checker will appear in the lowest available row in the chosen column. This will repeat until there is a winner or the board fills completely. The first player to connect 4 pieces vertically, diagonally, or horizontally wins the game. If the game board completely fills up before either player achieves a win, the game is declared a tie.

 

Over 7/Under 7

To play Over 7 / Under 7, the player must first hit the Run button to start the game. In this game, all of the inputs the player need to enter would be in the command window of MATLAB. In the beginning, the game will ask the player to enter a total amount of money they want to put in the stakes pool, if the player enter 0, the game will end. Then, the program will ask the user the amount of money they want to bet in this current round, if the player enter 0, the game will end as well. Additionally, the amount of money to bet in a single round must be lower than the amount of money in the pool and must be non-negative number. If the player inputs a number greater than the amount of money in the pool or a negative number, the program will remind the user and ask the user to enter again.

The rule for this game is to roll 2 dice and to guess if the total values of two dice will be under 7, over 7 or exactly equal to 7. In this game, the dice will roll automatically every round by the computer and the result of rolling will appear to the screen. Then the program would ask the player to enter the result they guess (high, low, or sevens) by simply entering h, l, s (either uppercase or lowercase works). If you guess correctly over or under 7, you get 1x your bet added to the pool. If you guess exactly 7 and the total value is equal to 7, then you get 4x your bet back to the pool. Before every round, the amount of money they have in the pool will be showed to the screen. Therefore the user could end the game in the beginning of every round by entering a value of $0 to bet. If the player chooses to play continuously, the game will end automatically when the money in the pool is less than $0.