This will only work if you have the latest Java Runtime Environment installed. Available here.

For my class project I decided to make a single player Battleship game. The game is based on this version from a website of childrens games.

Rules of play
1. You are a naval commander with an arsenal of 50 missiles. The game is over once you run out of missiles or sink all of the ships, whichever comes first.

2. There are 5 ships to sink

Game specifics
Game board is blue. Missed squares are white, hits are red, and a ship turns black once it has been sunk. If you run out of missiles before sinking all of the ships, the remaining ships will turn yellow and gameplay stops.

The grey area at the bottom of the playing field displays the number of missiles remaining. The area at the top informs you of hits, misses, sunken ships ("You sunk my Battleship!") and whether you've won or lost the game.