Comp 212 Project #4: Design Patterns For Games

NEW SOURCE CODE, DOCS AND NOTES! (NOTE PACKAGING CHANGES FOR INTERFACES!)

Othello information!

Updated! See the Hints on INextMoveStrategies page!

See the new Tips and Traps section! These items come from common problems encountered by students.

This project is not about Tic-Tac-Toe nor Othello.  As explained in the lecture (on-line lecture slides, download the MS Powerpoint presentation), it uses a 2-person game design as a vehicle to learn BIGGER concepts in computing:

In this project, you will be given a big chunk of a 2-person board game framework and asked to write a few of its components, plug them in and obtain a program that can run Tic-Tac-Toe and Othello with different types of players, human and/or computer, using a variety of strategies to compute the next move while playing the games.  See the on-line demo!!

The given game framework abstracts and decouples the different components in a game and specifies them in terms of interfaces with only pure abstract behaviors:    Interface docs.  For example, the rules of a game is abstracted and encapsulated in an interface called IBoardModelABoardModel is a specific implementation of this interface using the state pattern.  Playing a particular board game is a matter of writing a concrete subclass of ABoardModel and plug it into the framework.  Nothing in the framework is changed!


Pair Programming

You are allowed and strongly encouraged to work in teams of at most 2 people.  Teams of size greater than two will need special authorization from either of the instructors of the course.

Resources

Othello Game rules: From Pressman Games, the manufacturer
Web page of an Othello fanatic: http://www.maths.nott.ac.uk/othello/othello.html

The project is divided into two milestones.

Milestone #1: due 11:59 PM, November 28, 2001- 30%

The goal of milestone one is to help you familiarize with the overall design of the game framework by focusing on the game model, which encapsulates:

The game model is represented by a class called GameModelGameModel Docs describes its design in UML and javadoc.

In this milestone, you are to:

To compile your code, type the following from the default package directory:

javac -classpath .:game4two.jar model/GameModel.java

To run your code, type the following from the default package directory:

java -classpath .:game4two.jar controller.TicTacToeApp


Milestone #2: due 11:59 PM, December 7, 2001 - 70%

Revise RandomStrategy to only select legal moves.

Implement MinMax principle.

Implement Alpha-Beta pruning strategy.

Implement Depth-limited search strategy.

Use the user ID of one of the team members as the package name for all of the above strategies.

See the Hints on INextMoveStrategies page!


Othello Tournament

During the week of the final, we will hold a tournament to select a new Othello champion.  Participation is totally optional. 

We will announce the tournament rules later.  One key rule is for you to use your user id as the package name for your best Othello next move strategy.


Tips and Traps

In no particular order...