B. User Manual

Game #1: Battleship

In order for the player to effectively play the game Battleship, the player must first load the game using MATLAB. The player must then place their 4 ships on the board by row and column, followed by vertical or horizontal, to prepare for battle against the AI. The opponents board will randomly generate. Once the user and the AI are ready to play, the game will begin. Similar to the traditional (analogue) Battleship, the player must pick a space by row and by column on the opposing board to “fire” at. If the AI has placed a ship in that location, the game will display a red dot in that space on the screen. However, if the AI had not placed a ship in that location, the a white dot will be displayed. A ship will be declared “sunk” if all of its spaces have been hit by the opponent. The game is completed when one player no longer has any surviving ships on the water. The player that still has ships remaining wins.

 

Game #2: Connect Four

In order to effectively play the two-player Connect Four game, players must load the program using MATLAB. Once the game is loaded, the game of Connect Four will begin. The player must pick a column in which the marker will be dropped by typing in the column of the board corresponding to the desired move. The game will continue between the two players alternating turns of placing one marker at a time until one player is able to create a chain of four markers. The chain of four can be horizontal, vertical, or diagonal. Once a chain of four is created, a message rewarding the winner will be displayed on screen. If an invalid move is made at any time during the game, the entire game will crash.