Skip to content

joshuainovero/Reverse-LL-in-a-Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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