A text-based dungeon crawler game developed for the University of Tsukuba Object-Oriented Programming course. Navigate the maze, battle monsters, and find the Goddess to escape Omotesando.
- Java 25 (Temurin or Oracle)
- Maven 3.x
This project uses JUnit 5 for automated testing. To compile the code and run the 15-test suite:
mvn clean packageExpected Output: Tests run: 15, Failures: 0, Errors: 0, Skipped: 0
Since this project uses Java 25 Preview Features, you must include the --enable-preview flag when running the compiled class files.
mvn exec:java -Dexec.mainClass="jp.ac.tsukuba.adventure.Main"First build the project, then run:
java --enable-preview -cp target/classes jp.ac.tsukuba.adventure.Main-
src/main/java: Core game logic (Game loop, Map parsing, Entity polymorphism). -
src/test/java: Comprehensive test suite (Map logic, Combat math, Healing). -
src/main/resources: Game assets (map.txt). -
target/: Compiled bytecode and build artifacts.