COMP 405/505
|
UML Diagrams for OO Games |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
One MVC is used to invoke another MVC when the user selects to play Tic-Tac-Toe vs. Othello:
The board in the game model has 4 states:
The next move operations are encapsulated as strategies that use accumulators:
All players in the game are abstractly equivalent and are held in a circular list to facilitate turn-taking:
© 2015 by Stephen Wong