A snake game that I built in C++ with the implementation of doubly linked list.
This small project was inspired by Clément Mihailescu, who have also built a snake game by reversing
a linked list using react JS. His video is in this link: https://www.youtube.com/watch?v=7Rkib_fvowE
Only necessary if you want to tweak the code. Go to Release for direct gameplay.
- Clone the repository
https://github.com/joshuainovero/Reverse-LL-in-a-Snake-Game.git
-
If you do not have Mingw-w64 installed on your computer. You can download it on the link below:
Download Mingw-w64 -
Go to the parent directory of the repository and type this command:
mingw32-make
This will compile all the source code and output its executable to SnakeGame/output folder.
Red apple - Snake growth
Purple apple (20% chance of spawning) - Snake growth + reversing the snake