Battleship

Battleship

 

Game that simulates naval warfare

To play the Game, Save these files to your computer.

Battleship.java

BattleshipClient.java

InternetListener.java

Player.java

Ship.java

AttackListener.java   

BattleshipServer.java

BattleshipThread.java

BattleshipProtocol.java

 

In order to compile these files to run the game, you will need to download the Java 2 Platform.

Once Java is installed on your computer, run the command prompt and type in the following commands.

To compile:     javac Battleship.java

To Run Game:   java Battleship

If you want to run the game over a network, you will need to compile the server and run it before running Battleship.

To compile:     javac BattleshipServer.java

To Run Game:   java BattleshipServer

 

We spent six weeks working on this program.  It's not perfect, but it does work for the most part.

Enjoy.