Skip to content

A very simple snake game as an intro to C

Notifications You must be signed in to change notification settings

jarpoole/jsnake-v1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 29, 2022
575311a · Dec 29, 2022

History

3 Commits
Dec 29, 2022
Dec 29, 2022
Dec 29, 2022
Dec 29, 2022
Dec 29, 2022

Repository files navigation

jsnake-v1

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.

play

Features

  1. Score keeping
  2. Single-player mode ([UP][LEFT][RIGHT][DOWN] against computer)
  3. Two-player mode (wasd and [UP][LEFT][RIGHT][DOWN])

Dependencies

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

Play

The game expects an approximately 16x9 aspect ratio for the terminal. Make sure to resize the window as appropriate.

make
./jsnake.app

menu score

About

A very simple snake game as an intro to C

Topics

Resources

Stars

Watchers

Forks