Slide 47
Slide 47 text
Enforcing encapsulation
• Decouple the "interface" from the
"implementation".
• Shared data structures that are used by both
the UI and the game engine.
(CellState, MoveResult, PlayerXPos, etc.)
• Private data structures that should only be
accessed by the game engine (e,g. GameState)