Java version: openjdk 17.0.4.1 2022-08-12
- We have assumed the numbering of 1st floor to be as follows:
-
The bonus points awarded can take the dice output beyond 12.
-
In case of Portion, Trap and Portal treasures the treasure effect is immediate.
-
Finding a Portal treasure allows the adventurer to move to a different room immediately.
-
During a Careful search the adventurer has a 50% chance of avoiding Trap treasure. If avoided the trap is not removed from the room.
-
Treasures can be placed in any room including starting room 0-1-1.
-
Observer for tracking events is implemented using a push model.
-
All events are notified to registered subscribers. Tracker ignores any events that are not useful to it.
-
Project Structure:
The main function is in RotLA.java.
All the files required to run the program are in src/main folder.
All the test files are in src/test folder. -
JUnit test results are available in file - JUnitResults.png
-
Line chart result is available in file - RotLASummary.jpeg
-
Maven tool is used to build the tests and dependencies are listed under pom.xml
-
RotLA game is interactive and allows user to enter commands
-
Incorrect commands including typos will result in game termination