Skip to content

Latest commit

Β 

History

History
82 lines (54 loc) Β· 2.05 KB

File metadata and controls

82 lines (54 loc) Β· 2.05 KB

STRANDED β€” A Survival Java CLI Game

Java CLI License: MIT

You wake up on a silent shore.
Your boat is gone. Your radio is damaged.
It needs 7 days to charge.
Survive until rescue arrives.

STRANDED is a text-based survival simulation built in Java.


Core Mechanics

Each day: - Resources decay automatically - Player chooses one action: - Hunt - Rest - Explore - Random events may affect survival - Game ends if any vital stat reaches zero

Goal: Survive 7 days and send the rescue signal.


Game Features

  • Resource management (Energy, Food, Morale)
  • 7-day survival loop.
  • Daily resource decay system.
  • Action-based decision mechanics.
  • Random event outcomes.
  • State-dependent difficulty scaling.
  • Multiple ending conditions.
  • CLI-based immersive pacing.

Project Architecture

  • Main.java β†’ Entry point
  • GameEngine.java β†’ Game loop, decision logic, pacing
  • Player.java β†’ Encapsulated player state and stat management

Concepts demonstrated:

  • Object-Oriented Programming (OOP)
  • Encapsulation
  • Conditional logic
  • Loop control
  • Randomized probability systems
  • Basic exception handling
  • Clean separation of responsibilities

How to Run

Compile

javac *.java

Run

java Main

πŸ“œ License

This project is licensed under the MIT License.


πŸ‘€ Author

Arun R