You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Vissarion Moutafis 4d927a72d8
Revert "Revert "track bin/ directory""
5 years ago
bin track bin/ directory 5 years ago
include changed perms 5 years ago
src changed perms 5 years ago
.gitignore Update .gitignore 5 years ago
LICENSE Initial commit 5 years ago
Makefile changed perms 5 years ago
README.md Update README.md 5 years ago

README.md

Snake Game in C++

Abstract

A simple snake game, with terminal GUI implemented using ncurses library.

Controls:

  • Up-Arrow to go up.
  • Down-Arrow to go down.
  • Left-Arrow to go left.
  • Right-Arrow to go right.
  • q to exit game.

TODO:

  • Increase speed of the snake when it devours a snack.
  • Add a scoreboard.
  • Fix the window-resize factor, since it gets all messy when you minimize/maximize the terminal window.
  • Create a 'Game' class and provide interface through that function so that the user don't have to mess with the graphics
    snake and controller classes.

Prerequisities

You need to install the following two packages:

  • libncurses5-dev : Developer’s libraries for ncurses,
  • libncursesw5-dev : Developer’s libraries for ncursesw,
  • gcc : C\C++ compiler,
  • make : instalation tool.

Open up a terminal and type the folllowing commands

~$ sudo apt update && sudo apt upgrade
#Now to install compiler and instalation tool
~$ sudo apt-get install gcc make
#And the actuall library
~$ sudo apt-get install libncurses5-dev libncursesw5-dev

Now you are ready to use the repo.


Downloading, Instalation and Running the Program

Now we will install and run the program, but first let's download the repo:

~$ git clone https://github.com/VissaMoutafis/Snake_Game_in_Cpp

# cd in the directory
~$ cd Snake_Game_in_Cpp

#run the 'make run' to install and play
~$ make run

and enjoy playing!

Note: You might want to delete the objective files and keep only the src part. In that case:

~$ make clean

and you are set.


Contributors

VissaM


Licence: MIT

Check the file LICENCE.

Enjoy!