B. User Manual

Connect Four:

To play Connect 4, first open up MATLAB, load Connect 4 file, and run the program. You will be asked to choose a level of difficulty. On the hardest level (4) you will be playing against an Artificial Intelligence, that determines the chips strategically, while on the first level, the computer places the chip randomly. The levels get progressively harder. To choose a level, select 1,2,3, or 4 to determine the level as the numbers correlate directly to each level. If you select an invalid number, the game will ask you to type a valid number. Once the level is selected, the Connect 4 game board will be displayed to the screen. The purpose of Connect 4 is to strategically place your colored chip of four in a row in any cardinal direction: up, down, side, or diagonal. The game board is consisted of seven columns, therefore you can place a chip in a column by pressing 1-7 as the columns directly correspond with the numbers left to right. To place your chip on a different row, the only way to do this is by placing it on top of a different chip, so the only controls of dropping the chip into the game board is by selecting the columns.

 

Hangman:

To play Hangman on MATLAB, first open up MATLAB. Once MATLAB is loaded, open up the hangman file, titled Hangman. There are three categories each of 50 words to guess from including Disney Movies, the 50 states, and top 50 songs! To pick a category simply choose 1-3. Choosing 1 will give you a catalog of the 50 states. Choosing 2 will give you a catalog of Disney movies. Choosing 3 will give you a catalog of top 50 songs. The program will randomly choose a word from the category you pick. Once the computer randomly chooses the word, the blanks will be displayed on the screen as well as the hangman board. Now you can start playing: simply enter any letter from the keyboard and the computer will let you know if your guess was right or wrong. It does not matter if the letters are lowercase or uppercase, as the the program is not case sensitive. If you repeat an already guessed letter, the computer will inform you that you have guessed an invalid letter and should try again, if you guess a correct letter, a letter that is in the word the letter will be displayed in the blanks it fills. If you guess six wrong letters, then you lose the game. One of each part of the stick figure and face will be drawn for every incorrect letter guessed.  If you guess the word and/or fill all the blanks then you win! To play again press 1!