Client Server Model
Structure program a collection of classes.
- Some classes have general utility.
- Other classes are specific to the application at hand.
Design of adventure game implementation
- Class Room
- collection of rooms
- numbered starting at 1
- connected to one another by tunnels reached via doors
- no room has more than 3 doors
- Class Adventure
- client of class Room
- processes input to build cave
- processes moves and keeps track of player position and demon position
- creates output
- stops game when player and demon are in same room