This commit is contained in:
Arefe Talebi
2026-05-19 21:52:55 +03:30
parent 78d4bedb08
commit dcfbcbbdab
27 changed files with 201 additions and 32 deletions
@@ -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());
}
}
}