COMP 405/505
Spring 2016

UML Diagrams for OO Games

Home  Info  Owlspace  Java Resources  Eclipse Resources  SharePoint  Piazza

Double-Layer of MVCs

One MVC is used to invoke another MVC when the user selects to play Tic-Tac-Toe vs. Othello:

 

Click for full-size image.
Double MVCs

 

Game Model with 4-State Board

The board in the game model has 4 states:

Click for full-size image.
Game model

 

Next Move Strategies and Accumulators

The next move operations are encapsulated as strategies that use accumulators:

Click for full-size image.
nextMoves diagram

 

Equivalent Players

All players in the game are abstractly equivalent and are held in a circular list to facilitate turn-taking:

Click for full-size image.
players diagram

 

 

 

 

 


© 2015 by Stephen Wong