A modern C++ implementation of the classic Snake game using SFML for graphical rendering.
- Modern C++ 17 implementation
- SFML graphics for rendering
- Multiple game states and menus
- Configurable settings
- Unit testing with Google Test
- CMake 3.14 or higher
- SFML 2.5 or higher
- C++17 compatible compiler
# Clone the repository
git clone https://github.com/bajfi/GreedySnake.git
cd GreedySnake
# Create a build directory
mkdir build && cd build
# Configure and build
cmake ..
make
# Run the game
./GreedySnake
# Run tests
./run_tests- Arrow keys or WASD to move
- P to pause/resume
- Escape to go back or exit
src/game: Core game logicsrc/menu: Menu system and game statessrc/renderer: Rendering interface and implementationssrc/settings: Game settings managementsrc/tests: Unit tests
This project is licensed under the MIT License - see the LICENSE file for details.