Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.52 KB

README.md

File metadata and controls

30 lines (25 loc) · 1.52 KB

Reversing a Linked List in a Snake Game 🐍

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

Graphics Library

Local Setup

Only necessary if you want to tweak the code. Go to Release for direct gameplay.

  1. Clone the repository
https://github.com/joshuainovero/Reverse-LL-in-a-Snake-Game.git
  1. If you do not have Mingw-w64 installed on your computer. You can download it on the link below:
    Download Mingw-w64

  2. 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.

Actual Gameplay

Red apple - Snake growth

red


Purple apple (20% chance of spawning) - Snake growth + reversing the snake

purple