Connect Four User Manual

Table of Contents



Overview

Connect Four is a two-player game. To win, one of the players must line four of his chips consecutively.

Note that this manual assumes working knowledge of the UNIX operating system environment.



Rules of the Game

1. This is a two-player game

2. In each turn, a player drops a chip into the board. This means that the chip is going to land either on the very bottom or on top of another chip(s) that are already there.

3. The chips may be lined horizontally, vertically, or diagonally.

4. The player must have four chips lined (as specified in step 3) uninterrupted to win.

5. If the entire board is filled without a winner, the game results in a tie.



System Requirements

Operating System with Java 1.4 Virtual Machine (UNIX, Windows, or OS 9 recommended)

Internet connection (56kbps minimum, Cable/ADSL recommended)

Internet browser software (latest versions of Internet Explorer, Netscape Navigator, etc)



Compiling Connect Four

Once all the necessary files are in place, the application version of the game can be compiled by typing the following command on the prompt:

javac Connect.java

To compile the applet version of the game, type:

javac ConnectApp.java

JAR must be created after the compilation is finished. This is done by typing:

jar cf Connect.jar *.class



Running Connect Four

The application version of Connect Four can be run by typing the following command on the prompt:

java Connect

The applet version of Connect Four can be run by typing the following address on an internet browser:

http://www.duke.edu/~sky2/cps108/OOGA/othello.htm



Playing the Game

A new game loads concurrently with the GUI. To start a new game, go to File and click on New Game. Each player takes turns dropping chips onto a chosen column. The chip can be dropped by clicking on any of the circles on a desired column. Remember that the chips will drop as low as they could (either the very bottom of the board or above a chip). Whoever manages to connect four consecutive chips horizontally, vertically, or diagonally wins the game. The game ends in a tie if the board is filled without a winner. You can quit anytime during play by going to File and clicking Quit



The Menu

The File menu contains two options:

New Game - starts a new game

Quit - quit the game, close the window

The Help menu contains two options:

Using Help - brings up the user manual

About Connect Four.. - information regarding this version of Connect Four


Example