top of page

Project Name

Class 

ENGR 0711: Honors Intro to Engineering Computing

Year

2020

Location

Pittsburgh, PA 

External Links

mark-github-512.png

In the Fall Semester of 2020, I worked with two other engineering students to create a "virtual arcade" of games - entirely written in MATLAB. 

​

I worked on a single-player battleship game, with 3 levels of difficulty and a randomly generated board to allow infinite replayability. 

​

All of my code is available in a Github repository, linked at the top of the page.

The game is conducted entirely in the MATLAB command window. To the right is an example of the game in progress, and below are the rules of the game displayed to the user.

"Welcome to Battleship!
5 Ships have Been Placed Randomly on the Board:
Carrier: 5 squares long
Battleship: 4 squares long
Cruiser: 3 squares long
Destroyer: 2 squares long
Skiff: 1 square long
 
You will have either 50, 25, or 15 shots to sink all of the ships, depending on your difficulty level. You will enter in a vertical coordinate, then a horizontal one, between 1 and 10.
The horizontal coordinate is ordered left to right, while the vertical coordinate is ordered top to bottom.
 
After every turn, a grid showing each enetered coordinate will be shown, indicating whether it was a hit or miss.
 
Difficulty Levels: 
1 - 50 shots
2 - 25 shots
3 - 15 shots"

Battleship_Example.png

The game is accompanied by pictures, displayed for hits, misses, Victories, and Losses, shown below:

​

hit.jpg
Miss.jpg
victoryship.jpg
sunkenship.jpg

716-261-0079

  • linktree

©2021 by Mark Hofmeister

Buffalo, NY

bottom of page