Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arezyhs/cplusplus-breach-the-fortress

This simple C++ game that allows player to breach a fortress using a strategic combination of cannons. Your goal is to bring down the fortress by pairing the explosion values of two cannons until the fortress is breached.
https://github.com/arezyhs/cplusplus-breach-the-fortress

cplusplus simple-game

Last synced: about 1 month ago
JSON representation

This simple C++ game that allows player to breach a fortress using a strategic combination of cannons. Your goal is to bring down the fortress by pairing the explosion values of two cannons until the fortress is breached.

Awesome Lists containing this project

README

        

# Breach the Fortress Game

## Introduction

Welcome to the "Breach the Fortress" game! This console-based game allows players to breach a fortress using a strategic combination of cannons. Your goal is to bring down the fortress by pairing the explosion values of two cannons until the fortress is breached.

## How to Play

1. **Input Cannons:** Enter the number of cannons you want to bring to breach the fortress (maximum is 10).
2. **Explosion Values:** Input the explosion value for each cannon. The maximum explosion value for each cannon is 500.
3. **Breach Strategy:** The game will attempt to breach the fortress by combining the explosion values of consecutive cannons.
4. **Outcome:** Find out whether you successfully breached the mighty fortress or if you failed in your attempt.

## How to Run

1. Open a terminal in the project directory.
2. Compile the code (if needed): `g++ your_main_file.cpp -o breach_game`
3. Run the executable: `./breach_game`

## Author
- @arezyhs

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.