Combat Dynamics Simulation

Project Overview

This project was built using a template provided by Professor John Sterling as part of the Object-Oriented Programming coursework at New York University's Tandon School of Engineering. This is a project using inheritance, polymorphism, and interactions between characters in a medieval-inspired world. This project is a fantasy battle simulation where nobles (like Lords and lone fighters) recruit protectors such as archers, swordsmen, and wizards to form armies and engage in battles. The outcome of each battle depends on the comparative strength of the nobles and their armies, with dynamic adjustments to strength and survival.

Key Features

Technologies Used

Challenges Faced

Implementing the mechanics of dynamic battle results and creating a fluid interaction system between different character types proved to be a challenge. However, using OOP principles such as inheritance and polymorphism helped manage the complexity.

Code

Test Code

Screenshot of Test Code

Noble Header File

Screenshot of Noble Header File

Noble C++ File

Screenshot of Noble C++ File Screenshot of Noble C++ File Screenshot of Noble C++ File Screenshot of Noble C++ File Screenshot of Noble C++ File

Protector Header File

Screenshot of Protector Header File

Protector C++

Screenshot of Protector C++ File