HW4
This commit is contained in:
@@ -9,7 +9,21 @@ public class Main {
|
||||
public static void main(String[] args) {
|
||||
// TODO: ADD LOCATIONS TO YOUR GAME
|
||||
List<Location> locations = new ArrayList<>();
|
||||
Location forest = new Location("Forest");
|
||||
Location cave = new Location("Cave");
|
||||
|
||||
forest.addLocation(cave);
|
||||
cave.addLocation(forest);
|
||||
|
||||
locations.add(forest);
|
||||
locations.add(cave);
|
||||
|
||||
// TODO: IMPLEMENT GAMEPLAY
|
||||
System.out.println("Game started!");
|
||||
System.out.println("Locations created: ");
|
||||
|
||||
for (Location loc : locations) {
|
||||
System.out.println("- " + loc.getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user