This project is the first game and likely even full program I ever wrote in C. Its very rough around the edges but definitely playable.
- Score keeping
- Single-player mode (
[UP][LEFT][RIGHT][DOWN]
against computer) - Two-player mode (
wasd
and[UP][LEFT][RIGHT][DOWN]
)
Install ncurses
. On debian based distros like ubuntu for example:
apt-get install libncurses5-dev
Install build tools. On debian based distros like ubuntu for example:
sudo apt install gcc make
The game expects an approximately 16x9 aspect ratio for the terminal. Make sure to resize the window as appropriate.
make
./jsnake.app