https://github.com/yasnakateb/snake
🐍 A simple Snake Game in C
https://github.com/yasnakateb/snake
ncurses snake terminal-game
Last synced: about 2 months ago
JSON representation
🐍 A simple Snake Game in C
- Host: GitHub
- URL: https://github.com/yasnakateb/snake
- Owner: yasnakateb
- Created: 2019-08-11T21:49:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-20T03:51:32.000Z (over 6 years ago)
- Last Synced: 2025-01-20T00:56:18.832Z (10 months ago)
- Topics: ncurses, snake, terminal-game
- Language: C
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snake
The aim of this game is collecting the gold (@).
As you collect gold, the snake gets longer, thus increasing the likelihood of crashing into yourself.
## The rules of the game:
The player loses when the snake runs into the screen border or itself.
## Hot Keys:
UP, DOWN: move along the Y-axis
LEFT, RIGHT: move along the X-axis
Dependencies
============
This game needs ncurses and a C compiler.
## Building on macOS
1. Ncurses can be installed via Homebrew :
$ brew install ncurses
2. Clone the repository
3. Run $ make
4. Run the executable snake
