How jruss256/cs1720 works
Project.java is a console-based D&D choose-your-own-adventure game. The player selects a class, receives derived combat statistics, chooses a destination that determines the enemy, then repeatedly attacks or heals until either combatant falls. Random rolls resolve attacks, damage, and healing, after which the game prints victory or defeat. The repository contains only this monolithic runtime; the diagram therefore represents internal stages within Project.java rather than separate modules.
Main entry points: Project.java Game Entry
Components 9
Player Interaction
- Game Entry
Project.java - Console I/O
Adventure Setup
- Class Selection
Project.java - Encounter Setup
Project.java
Combat Runtime
- Battle Loop
Project.java - Combat Resolution
Project.java - Random Generator
- Outcome Display
Project.java
Other components
- Player
Connections 12
- Player → Console I/O: enters choices
- Console I/O → Game Entry: provides input
- Game Entry → Console I/O: prints prompts
- Game Entry → Class Selection: handles class
- Game Entry → Encounter Setup: selects encounter
- Game Entry → Battle Loop: runs battle
- Battle Loop → Console I/O: reads actions
- Battle Loop → Combat Resolution: resolves turns
- Battle Loop → Random Generator: requests rolls
- Combat Resolution → Battle Loop: updates health
- Game Entry → Outcome Display: reports result
- Outcome Display → Console I/O: prints result