Skip to content

A simple console-based snake game written in C++. Classic snake game implementation for the terminal.

License

Notifications You must be signed in to change notification settings

Denys619/Console-Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Console Snake Game

This is a console game "Snake" created in C++ using the CMake library.
The game runs in a terminal and offers a classic gaming experience.This is a console game "Snake" created in C++ using the CMake library.

Installation

  1. СClone the repository:

    git clone https://github.com/Denys619/Console-Snake-Game.git
    cd Console-Snake-Game
  2. Build the project using CMake:

    mkdir build
    cd build
    cmake ..
    make
  3. Run the game:

    ./snake

🎮 Controls

Key Action
W Move up
S Move down
A Move left
D Move right

Technologies used

  • Language: C++
  • Assembly: CMake
  • Console graphics: ASCII
  • The logic of the game: Dynamic arrays, input processing

⚠️ The game currently works on Linux and macOS. Windows support is not implemented yet.

📸 Screenshots

image Screenshot from 2025-03-16 11-03-03

Game roadmap

  • ✅ Optimize rendering to avoid flicker
  • 🔲 Add support for difficulty levels
  • 🔲 Add saving the best results
  • 🔲 Improve control (e.g. arrow support)
  • 🔲 Add sound effects
  • 🔲 Implement Windows support

I look forward to your ideas and pull requests!

If you like this project, here's how you can help:

  • Put a star on GitHub
  • Report bugs via Issues
  • Suggest improvements via Pull Requests
  • Sharethe project with your friends

About

A simple console-based snake game written in C++. Classic snake game implementation for the terminal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published