28 lines
1016 B
Plaintext
Executable File
28 lines
1016 B
Plaintext
Executable File
Project: zuul-bad
|
|
Authors: Michael Kölling and David J. Barnes
|
|
|
|
This project is part of the material for the book
|
|
|
|
Objects First with Java - A Practical Introduction using BlueJ
|
|
Sixth edition
|
|
David J. Barnes and Michael Kölling
|
|
Pearson Education, 2016
|
|
|
|
This project is a simple framework for an adventure game. In this version,
|
|
it has a few rooms and the ability for a player to walk between these rooms.
|
|
That's all.
|
|
|
|
To start this application, create an instance of class "Game" and call its
|
|
"play" method.
|
|
|
|
This version of the game contains some very bad class design. It should NOT
|
|
be used as a basis for extending the project without fixing these design
|
|
problems. It serves as an example to discuss good and bad design (chapter 8
|
|
of the book).
|
|
|
|
Chapter 8 of the book contains a detailed description of the problems in this
|
|
project, and how to fix them.
|
|
|
|
The project 'zuul-better' contains a version of this project with better
|
|
designed class structure. It includes the fixes discussed in the book.
|