Engr 691-12: Special Topics in Engineering Science
Fall Semester 2000
Instructor's Bulletin Board
26 September 2000: Patterns Presentations
Patterns Presentation Groups menu item on the main page to see the
memberships of the twelve groups for the presentation of patterns to
I added students Hood, Gao, Addaganti, and Chrandraganti (whose names
were not on the signup list) to various groups that had fewer than
The number of the group gives the order of presentation. The name is
the design pattern that the group is to present.
30 August 2000: Assignment #1
Assignment #1 was handed out in
class today. It is due on Wednesday, 13 September.
This is not a particularly difficult assignment. My purposes are:
- To give those students who have previously programmed very little
in Java a chance to learn the basics of the language.
- To get all students to think about implementing abstract data
types in Java, perhaps in a more precise way than they have
Note that I do want the classes and methods specified using
preconditions, postconditions, and invariants. You might consider
class (or something similar of your own) to check for
preconditions, etc.. You might want to use Javadoc to document the
If any of you are looking for more of a challenge, you might think
about developing the program, in particular the
GameCards classes, as an "application framework" for
a whole class of Bingo-like games. By application framework, I mean a
set of base classes, interfaces, and library classes that can be
extended, implemented, or used to provide different specific games.
Here are some ideas--perhaps all cannot coexist within the same
Don't try something sophisticated until you are sure you can deliver a
good solution to the basic problem
- Consider changes like making the size of the board variable,
making the techniques for initializing the board, ranges on values,
etc., something that can be done in different ways (e.g., in an
overridden method), etc.
- The row, column, and diagonal winning patterns are not the only
ones used in Bingo. Perhaps allow design the class where different
winning pattern detection techniques can be "plugged into" the class
in some way. You may need to do some research into what different
kinds of patterns are used in varous Bingo games.
You might want to investigate the Template Method and Strategy design
patterns for ideas on how to implement this (and other of the possible
- Consider using a general class of objects for the labels in the
Bingo grid, not just primitive ints. Since an equality operation is
needed you will need to define an appropriate base class or interface
to represent this hierarchy labels.
- I implied a simple text-based display of the bingo card. If you
like graphics, you might consider having the game to have a
"real-time" display of bingo cards on the screen. This capability
should not be built directly into the BingoCard class but should be a
separate class that gets its information from a BingoCard instance.
You would probably need to be able to selectively choose cards to
display, since all in a GameCards class will not likely fit on a
screen at once.
If you do this, please try to stay with standard Java graphics.
Finally, if you have a programming problem you would like to tackle,
then let me know. I could perhaps substitute it for this one, but
more likely I might consider it for future individual or group
UP to ENGR 691 root document?
Copyright © 2000, H. Conrad Cunningham
Last modified: Thu Feb 1 10:30:20 2001