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.

64 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
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. ### TODO:
  11. - Add a scoreboard.
  12. ---
  13. ## Prerequisities
  14. You need to install the following two packages:
  15. - libncurses5-dev : Developer’s libraries for ncurses
  16. - libncursesw5-dev : Developer’s libraries for ncursesw
  17. - gcc : C\C++ compiler
  18. - make : instalation tool
  19. Open up a terminal and type the folllowing commands
  20. ```shell
  21. ~$ sudo apt update && sudo apt upgrade
  22. #Now to install compiler and instalation tool
  23. ~$ sudo apt-get install gcc make
  24. #And the actuall library
  25. ~$ sudo apt-get install libncurses5-dev libncursesw5-dev
  26. ```
  27. Now you are ready to use the repo.
  28. ---
  29. ## Downloading, Instalation and Running the Program
  30. Now we will install and run teh program, but first let's download the repo:
  31. ```shell
  32. ~$ git clone https://github.com/VissaMoutafis/Snake_Game_in_Cpp
  33. ~$ cd Snake_Game_in_Cpp
  34. ~$ make run
  35. ```
  36. and enjoy playing!
  37. __Note__: You might want to delete the objective files and keep only the src part. In that case:
  38. ```shell
  39. ~$ make clean
  40. ```
  41. and you are set.
  42. ---
  43. ## Contributors
  44. [VissaM](https://github.com/VissaMoutafis)
  45. ---
  46. ## Licence: MIT
  47. Check the file LICENCE.
  48. ### Enjoy!