This assignment is to be done individually. Each student must submit their own solution which should be independent work.
This assignment has two parts, as follows, both of which are with respect to the game of "Dots", which is described below.
yourLoginis your engineering login name) that implements the
model.DotsModelInterfaceinterface. The required behaviour of each of the methods is described in the javadoc comments in DotsModelInterface.java. Hint: You can automatically generate the class stub using most java development environments. In Eclipse, select the model package and activate File->New->Class, then add DotsModelInterface to the interfaces box. All you need to do then is fill in the method implementations.
This is a two-player game played on a rectangular grid of dots. The size of the grid is chosen by the player who initiates the game. Players take turns selecting a pair of horizontally or vertically adjacent dots to be connected with a line segment, as illustrated below. The object of the game is to be the player who connects the dots to form the fourth segment to close a square, which results in a point for that player, the enclosed square is coloured that player's colour and s/he is awarded another turn.
The game ends when there are no pairs of unconnected dots available on the board. The winner is the player with the most points.
You can play the game by downloading and running dots.jar.
Submit your solution in a single zip file (note: note it must be zip, not a rar or other archive format) using Web Submit. Your solution should consist the following:
Last modified: $Date: 2008-02-06 08:49:46 -0330 (Wed, 06 Feb 2008) $ ($Revision: 325 $) by $Author: dpeters $