CSCI 136 |
In this assignment, you will be making a game in which you wander around a dungeon. You will learn to use 2D array and develop a small class hierarchy using inheritance. |
13 10 3 10 W W W W W W W W W W W W W W - W - - - - - - D - - W W - W - W W W - W W - - W W - W - S - S - W W - - W W - - - W W W - W W W W W W W W - W W W D W W - - W W W W - W - - - - D - - W W W W - W - - - - W - - W W - - - W W W W W W - - W W W W W W W W W W W W W W |
|
When the above messages should print should be obvious. The letter X should be replaced with the appropriate current count of keys or gems.Our hero walks north... Can't go north! Our hero walks south... Can't go south! Our hero walks west... Can't go west! Our hero walks east... Can't go east! You found a key, total keys = X You found a gem, total gems = X Used key to open door, keys left = X You need a key for the door!
Cell.java | ||
CellDoor.java | ||
Hero.java | ||
Dungeon.java |
Page last updated: May 15, 2013