A fun console-based game built using C++ and Object-Oriented Programming (OOP) concepts. Inspired by the classic Snake game, SnakeMonGame introduces new twists and a bonus system to enhance gameplay and learning.
SnakeMonGame combines the mechanics of traditional Snake with additional features like:
- Dynamic movement and collision detection
- Point collection system
- Increasing difficulty over time
- Bonus mode for special challenges
- C++ — Main programming language
- OOP Concepts — Encapsulation, inheritance, and polymorphism
- Standard Template Library (STL) — For data handling where needed
- Console I/O — ASCII-based rendering
SnakeMonGame/
├── src/
│ ├── main.cpp
│ ├── Snake.cpp
│ ├── Snake.h
│ ├── GameEngine.cpp
│ └── GameEngine.h
├── README.md
└── LICENSE
-
Clone the repository:
git clone https://github.com/yourusername/SnakeMonGame.git cd SnakeMonGame -
Compile and run:
g++ src/*.cpp -o SnakeMonGame ./SnakeMonGameTested on Linux/WSL with g++
- Class design and interaction
- Game loop and real-time input
- Handling edge cases and collision
- Randomized behavior and bonus logic
- Bonus mode: Activates based on performance/time
- Speed-up: Increases challenge as score increases
- Custom events: Triggers for unique gameplay changes
Muhammad Khaled
Junior Computer Engineering Student at Cairo University
Passionate about game development, simulations, and storytelling through code.
This project is open source under the MIT License.