Capestone project for udacity nano-degree program. Ascii Snake game using ncurses as the renderer.
All class files (headers and definations) are located in the src
folder. The main function is to be found in
file Snake.cpp
. Idea inspired by youtuber casual coder.
- As with traditional snake game functionality, the game involves a snake the moves in the direction of the player's choice.
- The snake consumes apples on the board and grows in size. The game ends if the snake bites its own body.
- The player gains a point everytime they consume an apple.
- cmake >= 3.7
- All OSes: click here for installation instructions
- make >= 4.1 (Linux, Mac), 3.81 (Windows)
- Linux: make is installed by default on most Linux distros
- Mac: install Xcode command line tools to get make
- Windows: Click here for installation instructions
- ncurses
- ncurses is a library that facilitates text-based graphical output in the terminal.
- This project relies on ncurses for display output.
- Clone this repo.
- Make a build directory in the top level directory:
mkdir build && cd build
- Compile:
cmake .. && make
- Run it:
./snake
.