Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/arezyhs/cplusplus-breach-the-fortress
- Owner: arezyhs
- Created: 2023-11-13T22:24:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-14T03:05:49.000Z (about 1 year ago)
- Last Synced: 2023-11-14T23:29:19.981Z (about 1 year ago)
- Topics: cplusplus, simple-game
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.