Skip to content

OsmanTFKC/Java-RPG-Battle-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Java-RPG-Battle-Simulator

Its a console based RPG battle simulator developed in java focusing OOP fundementals like classes,loops and methods.

This repository contains a console-based battle simulation engine developed in Java. The project focuses on implementing fundamental Object-Oriented Programming (OOP) principles and structured control flow.

Project Overview

The application simulates a turn-based combat system between two predefined heroes. It manages character states, calculates interactions, and handles game logic through a command-line interface.

Technical Implementations

  • Encapsulation & State Management: Utilized a standalone Hero class to manage character attributes such as health points (HP), damage values, and class roles.
  • Control Flow Logic: Integrated a while loop to maintain the simulation state, complemented by switch-case structures for user input processing.
  • Data Integrity: Implemented conditional checks within methods to ensure health values remain within logical bounds (clamping at zero upon character defeat).
  • Constructor Utilization: Employed parameterized constructors and the this keyword for precise object initialization.

Usage

  1. Compile the source files: Hero.java and NewClass.java.
  2. Execute the main class.
  3. Use the numeric console inputs to trigger attacks or retrieve character status reports.

Author

Osman Tüfekçigil

About

Its a console based RPG battle simulator developed in java focusing OOP fundementals like classes,loops and methods.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages