CS Department, Fall 1997, Java Programming

Battleship: stage 4

The first thing to get right in the two-player game is the communication between two programs, using the server/client model. Net.java is a short example that you can use as a skeleton for your version. Examine it thoroughly to make sure you understand it first. Run it, modify it, and use it!