Skip to content

nfischer/Snake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake

My adaptation of the popular snake game made using the ncurses library in C for Linux and Mac terminals.

Version Log

v1.3

  • implemented food
  • snakey grows when eating food
  • beep sounds when eating food
  • cursor is now hidden
  • snakey can no longer turn around and eat his own neck
  • snakey no longer an array, he is now represented by a struct with a length variable and an array of parts inside the struct.
  • efficient functions to handle menu display
  • Bug: when eating the first bite of food, there is a delay in the beep
  • Bug: when resetting, the food for some reason is not reset even though the set_food_coord function is called!
  • Todo: add score system
  • Todo: better menu interface

v1.2

  • set head of snake to index 0
  • added collision detection for head to body
  • added game over functionality
  • added reset functionality
  • created window to display menu

v1.1

  • added pause/play functionality

v1.0

REFERENCES

http://xn--ncoder-9ua.dk/blog/2010/04/using-ncurses-in-c-for-text-user-interfaces-featuring-xcode/

About

🐍 A fun terminal game!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.1%
  • Makefile 3.2%
  • Shell 0.7%