Homework 7
The goal of this homework is to learn to learn how
to use network sockets for communication between programs and/or users - and
to have fun.
Text (also as pdf)
Code that plays a simple game against human opponent.
.zip or .exe
Code for BattleShips .zip or
.exe
Code for BattleShips which works over sockets .zip or .exe
I will post UML diagram early tomorrow - meanwhile
the textual description in the README file should help.
The SocketChannel.java is not finished - I should have that tomorrow morning
as well.
When running the last two tests, the protocol is printed in the console first,
so that the user knows how to respond.
You may want to print the BattleshipConstants file to remember the codes
for various responses.
I will try to modify these to be human readable - if I do, I will also provide
the code to convert between the letters and the corresponding constants.
IMPORTANT: Detailed instructions for how
to organize the project are in the README file.
Due Date: Thursday May 29, at 2:50
pm in the lab in 229 CN
Bring your versions of the code - for creating the playing board, logics
for the game, GUI for user iteractions - or any other feature you wish. Make
sure any code you present has tests. Additional documentation in form of
UML or a 'story', which describes the behavior, is appreciated.