Abhi-gits / Snake-Game-C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake-Game-C

  • The Compiler must be pre-installed

  • Run the make command to compile all the files, and indeed to run the game.

    make clean -> deletes the executable file

    ./snake - for giving the input details via the command line.

  • This is snake game is has also an unbeatable condition where snake can't cut itself

  • For that commands are ->

      1. make UNBEATABLE = 1
      1. .\snake 30 40 10 (make sure that the size of the snake is less than the size of row and column)

Rules to play :

    1. navigate through s for downward, w for upward, a for leftward and d for rightward
    1. it will die when it cut itself, except unbeatable situation
    1. can't move backward

About


Languages

Language:C 96.0%Language:Makefile 4.0%