top of page

Snake

 
 
 

A Snake clone developed in C++ and played in the command prompt

Snake

A classic Snake clone that you can play in your command prompt. Control the snake's head and eat fruit to grow. Avoid the walls and your own tail as you grow longer and longer.

 

Thoughts from Development

My first attempt at using C++ was not as scary as I anticipated. Being able to manually handle pointers and references now makes other languages feel dirty. Actually making this with only windows stuff was a little tricky but I got a working game out of it in the end.

Grade: First (87%)

Key Features

  • Collision detection for the snake body as it moves

  • Memory management for the snake so it can grow without causing memory leaks

  • Random placement of fruit to eat that doesn't spawn on the snake or out of bounds

  • Audio effects

 
Gallery
bottom of page