roziscoding / snek

A stupid snake game I made to learn a bit of C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snek

A simple snake game that runs on the terminal.

How to Play

Use the arrow keys or the AWSD keys to move the snake around the board. The goal is to eat as many apples as possible without running into the walls or the snake's own tail. Each apple you eat will increase your score by one point.

Press the space bar to pause the game and press q to exit.

Installation

  1. Clone this repository.
  2. Build the game by running ./configure && make.
  3. Install the game by running make install.
  4. Start it by running snek.
  5. Profit.

Controls

  • Use the up arrow key or the W key to move the snake up.
  • Use the down arrow key or the S key to move the snake down.
  • Use the left arrow key or the A key to move the snake left.
  • Use the right arrow key or the D key to move the snake right.
  • Press the space bar to pause the game.
  • Press r to reset the game at any time
  • Press q to exit the game.

Credits

This game was created using C++ and the ncurses library.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A stupid snake game I made to learn a bit of C++

License:MIT License


Languages

Language:Shell 50.8%Language:Makefile 42.6%Language:C++ 5.9%Language:M4 0.6%