Skip to content

Isht-Wow/Project-Stranded

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

PS: This is my first structured Java project.

About

A text-based survival RPG game built in Java.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%