Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

DarthMooMancer/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A simple terminal-based snake game written in C++.

Build

To build the game, run the following commands:

cmake -S . -B build && cmake --build build

How to Run

After building the project, you can run the game with the following command:

./build/snake

How to Play

  • Use the w, a, s, and d keys to control the snake.
    • w: move up
    • a: move left
    • s: move down
    • d: move right
  • The game ends if you collide with yourself.
  • Press q to quit the game at any time.

About

  • This is a simple implementation of the classic Snake game.
  • It is written in C++23.
  • It uses the ncurses library to render the game in the terminal.

About

Snake in the terminal - Learning c++ in the process

Resources

Stars

Watchers

Forks

Packages

No packages published