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.

27 lines
795 B

5 years ago
5 years ago
5 years ago
  1. # Snake Game in C++
  2. A simple snake game, with terminal GUI implemented using ncurses library
  3. ## Prerequisities
  4. You need to install the following two packages:
  5. - libncurses5-dev : Developer’s libraries for ncurses
  6. - libncursesw5-dev : Developer’s libraries for ncursesw
  7. - gcc : C\C++ compiler
  8. - make : instalation tool
  9. Open up a terminal and type the folllowing commands
  10. ```
  11. ~$ sudo apt update && sudo apt upgrade
  12. #Now to install compiler and instalation tool
  13. ~$ sudo apt-get install gcc make
  14. #And the actuall library
  15. ~$ sudo apt-get install libncurses5-dev libncursesw5-dev
  16. ```
  17. ## Downloading, Instalation and Running the Program
  18. Now we will install and run teh program, but first let's download the repo:
  19. ```
  20. ~$ git clone https://github.com/VissaMoutafis/Snake-Game-in-C-
  21. ~$ cd Ch
  22. ```