CS Department, Fall 1997, Java Programming

Welcome to the Battleship project home page

Goals

Our aim is to write a program in Java that will play the popular game of Battleship either against the computer, or against another player on a different computer, running a different program. The project will be staged in four parts. Follow the links for more detail.

  1. Basic graphics, due Oct. 31st
  2. Initial board position and user interface, due Nov. 12th
  3. Computer strategy, due Nov. 26th
  4. Two-player protocol, due Dec. 8th

Rules of the game

Play a CGI version (presumably not Java)

My design document

The Protocol for the two-player game

A sample server/client program for the two-player game

The code for my version

The code for the multi-player server

The applet version that you can play (needs Netscape Communicator 4)