B. User Manual

Connect Four:

Connect Four will be run in a computer software called MATLAB. The game combines different coding practices to provide the player with an interactive experience and continues to monitor the player’s progress throughout the game. The game starts by with two players, player 1 (red chips) and player 2 (black chips). Player 1 is prompted to place their chip in a column of their choice. This is done by typing in the number of the desired column. If a column number that does not exist on the game board is entered, the player will be re-prompted to enter a column until one that exists on the board is chosen. When a column is selected, a picture depicting the game board will be displayed on the screen. The chip will drop to the lowest available slot in that column. After player 1 has placed their chip, player 2 will be prompted to place their chip in a column. Following each drop, the game will check to see if a win or tie has been reached. A player wins when they have successfully placed four of their chips in a row; either horizontally, vertically, or diagonally. If this happens, the winner of the game will be displayed to the screen and the game ends. The players tie if there are no available spaces left to place a chip on the board. Following the conclusion of the game, players can replay the game if they would like by pressing the spacebar.

 

Over/Under Seven:

Over/Under Seven on MATLAB provides the user with a real game experience simulated on the computer. The game is played with one player and can be accessed via MATLAB. Rather self-explanatory, the idea of the game is to guess whether the sum of two dice will be over, under, or exactly seven when rolled. First, the player is asked how much money they would like to start with. Next, the player is asked how much money they would like to wager, which must be greater than zero and not more than the amount of money they have. After the player makes their wager, they must then determine whether the dice will roll over, under, or exactly seven. If the player guesses over or under correctly, they win their wager. If the player guesses exactly seven correctly, they win 4 times their wager. The player is allowed to play until they run out of money, or until they wish to stop.

 

War:

War will be a computer game run using the MATLAB application.  War is played by only one player against the computer.  War is played the same as with an ordinary deck of playing cards.  The only difference is that instead of drawing a card you just press the spacebar to display the next card.  At the beginning of the game, the deck is split evenly in two, with twenty-six cards going to the player’s deck and the computer’s deck.  Whichever player has the greater value card (aces are high) will win the round and get the opponents card along with their own card and add them to their own deck.  In the event of a draw, three cards will be laid down face down, and the winner of the next round will receive all of the cards currently in play.  To end the game either the computer or the player must obtain all the cards in the deck.