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.

61 lines
1.3 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. # Snake Game in C++
  2. ## Abstract
  3. A simple snake game, with terminal GUI implemented using ncurses library.
  4. #### Controls:
  5. - __Up-Arrow__ to go up.
  6. - __Down-Arrow__ to go down.
  7. - __Left-Arrow__ to go left.
  8. - __Right-Arrow__ to go right.
  9. - __q__ to exit game.
  10. ---
  11. ## Prerequisities
  12. You need to install the following two packages:
  13. - libncurses5-dev : Developer’s libraries for ncurses
  14. - libncursesw5-dev : Developer’s libraries for ncursesw
  15. - gcc : C\C++ compiler
  16. - make : instalation tool
  17. Open up a terminal and type the folllowing commands
  18. ```shell
  19. ~$ sudo apt update && sudo apt upgrade
  20. #Now to install compiler and instalation tool
  21. ~$ sudo apt-get install gcc make
  22. #And the actuall library
  23. ~$ sudo apt-get install libncurses5-dev libncursesw5-dev
  24. ```
  25. Now you are ready to use the repo.
  26. ---
  27. ## Downloading, Instalation and Running the Program
  28. Now we will install and run teh program, but first let's download the repo:
  29. ```shell
  30. ~$ git clone https://github.com/VissaMoutafis/Snake_Game_in_Cpp
  31. ~$ cd Snake_Game_in_Cpp
  32. ~$ make run
  33. ```
  34. and enjoy playing!
  35. __Note__: You might want to delete the objective files and keep only the src part. In that case:
  36. ```shell
  37. ~$ make clean
  38. ```
  39. and you are set.
  40. ---
  41. ## Contributors
  42. [VissaM](https://github.com/VissaMoutafis)
  43. ---
  44. ## Licence: MIT
  45. Check the file LICENCE.
  46. ### Enjoy!