This repository contains a simple Snake Game implementation in C++. The game is played on the console and uses basic console input/output functions for interaction.
- Clone or download the repository to your local machine.
- Compile the
main.cpp
file using a C++ compiler (e.g., g++, Visual Studio, Code::Blocks). - Run the compiled executable to start the game.
- Use the following controls to play:
W
or↑
: Move the snake upS
or↓
: Move the snake downA
or←
: Move the snake leftD
or→
: Move the snake rightX
: Stop the game (optional)
- Eat the fruits (*) to increase your score and avoid colliding with the snake's own tail or the walls.
- Simple and straightforward gameplay.
- Console-based user interface.
- Score tracking and game-over detection.
- C++ compiler (e.g., g++, Visual Studio, Code::Blocks).
- Windows operating system for using
windows.h
andconio.h
libraries.