Previous | Next | Trail Map | Putting It All Together--The BINGO Game | Putting It All Together


The Code

There is surprisingly little code in the BINGO game: under 3000 lines of code. All told, the BINGO game is implemented using approximately 50 classes contained in 3 packages:

The Primary Classes

This section provides a few diagrams that show the most important classes in the Game and Player applications and how they related. This section also provides a description of the classes in the diagrams focusing on their relationships and their purpose. After reading this section and investigating the diagrams you will know the names of the key classes and how they fit into the overall BINGO game.

Descriptions of Every Class

Now that you have a general understanding of the most important classes in each application, follow these links for a complete list of all the classes in the each package and a description of each class.

Download the Source

More than 40 source files comprise this example. For your convenience, we include a downloadable zip archive that contains all of the source files necessary to build the BINGO Player and Game applications.

Download the zip archive

Compile the Source

Here's an example of building the BINGO Player and Game applications:
1> /java/jdk1.1.5/bin/javac -classpath \
   .:/java/swing-1.0/swing.jar:/java/jdk1.1.5/lib/classes.zip \
   bingo/game/*.java
2> /java/jdk1.1.5/bin/rmic bingo.game.RegistrarImpl
3> mv RegistrarImpl_*.class bingo/game
4> /java/jdk1.1.5/bin/javac -classpath \
   .:/java/swing-1.0/swing.jar:/java/jdk1.1.5/lib/classes.zip \
   bingo/player/*.java


Previous | Next | Trail Map | Putting It All Together--The BINGO Game | Putting It All Together