Collecting workspace information# Marvel Superhero Game
A C++ turn-based game featuring Marvel superheroes battling it out with special abilities and items.
This game allows players to build teams of superheroes from the Marvel universe and battle against each other. Each hero has unique abilities, attacks, and special moves. Players can also use artifacts to enhance their heroes or hinder opponents.
- Turn-based combat system
- Multiple playable superheroes: Spider-Man, Hulk, Iron Man, and Doctor Strange
- Unique special abilities for each character
- Item/artifact system including:
- Health Potions
- Power Amulets
- Cursed Stones
- Critical hit system
- Energy-based special attack mechanics
- C++11 compatible compiler (g++ recommended)
- Make
# Clone the repository
git clone https://github.com/Eladji/marvelgame.git
cd marvelgame
# Build the game
make
# Run the game
make run
# or
./marvelgame
- Start the game and enter the number of players
- Each player chooses a name
- Build your team by selecting 4 heroes:
- Hulk: High health, rage mechanics
- Spider-Man: Balanced stats, web abilities
- Iron Man: Technology-based attacks
- Doctor Strange: Magic attacks with AOE capabilities
- Choose 3 artifacts to add to your inventory
- During your turn, you can:
- Attack an opponent
- Use an artifact
- Switch heroes
- And no you don't get to revive your hero
SuperHero
: Base class for all heroes- Subclasses:
SpiderMan
,Hulk
,IronMan
,DocteurStrange
- Subclasses:
Artefacts
: Base class for all items- Subclasses:
HealthPotion
,PowerAmulet
,CursedStone
- Subclasses:
Player
: Manages hero teams and inventoriesGame
: Controls game flow and turn management
This project demonstrates object-oriented programming concepts in C++:
- Inheritance and polymorphism
- Pure virtual functions
- Memory management
- STL collections
- Eladji
- Contributors Myself
This project is licensed under nothing this is a school assigment.