Skip to content

Aqendo/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My very snake game

Intended to be able to run on any POSIX-compatible systems

asciicast

Features

  • Snake
  • Game
  • Fun
  • Own implementation
  • Supports apples
  • Supports collisions
  • Supports teleporting from one side to another
  • Terminal-based
  • Terminal is BASED
  • No external libraries needed
  • Just one file
  • ~200 lines
  • Handles CTRL-C

Compiling

There is a CMakeLists.txt but you can compile it with just 1 command:

$ g++ snake.cpp --std=c++11 -o snake
$ ./snake

LICENSE

This project is distributed under MIT License. See more