A simple implementation of the classic Snake game using the SFML library in C++. The game consists of a snake that moves around the screen and grows by eating randomly generated fruits. The player controls the direction of the snake using the arrow keys. The game usually ends if the snake hits the border or its own body.
SFML library
Compile and run the code. Use the arrow keys to control the direction of the snake.