Sciweavers

SIGCSE
2002
ACM

Design patterns for games

13 years 11 months ago
Design patterns for games
Designing a two-person game involves identifying the game model to compute the best moves, the user interface (the "view") to play the game, and the controller to coordinate the model and the view. A crucial task is to t the algorithms used in their highest abstract forms. This can prove to be a difficult and subtle endeavor. It is made easier however by the use of good objectoriented (OO) design principles to help maintain a high stract viewpoint during the design process. The state pattern is used to represent the game board and is coupled with the visitor pattern to provide state-dependent, variant behaviors. The min -max algorithm and its variants are implemented as the strategy pattern, which allows flexible and extensible computational capability. Careful is performed to properly abstract the interactions between the model and the view. The command design pattern is used to provide callback services between the model and the view. Leading students through this design p...
Dung Zung Nguyen, Stephen B. Wong
Added 23 Dec 2010
Updated 23 Dec 2010
Type Journal
Year 2002
Where SIGCSE
Authors Dung Zung Nguyen, Stephen B. Wong
Comments (0)