The player controls a long, thin creature, resembling a snake, which roams around on a bordered plane, picking up food (or some other item), trying to avoid hitting its own tail or the edges of the playing area. Each time the snake eats a piece of food, its tail grows longer, making the game increasingly difficult
-
Goal - the snake tries to eat as many apples as possible, within finite steps. The first priority for the snake is to not colliding itself while the second is to increase the score.
-
There are four possible directions the snake can move: left, right, up and down However, because of the placement of its tail some directions may not be available. The most clear example is that the snake can never swap to an opposite direction i.e. left to right, up to down, etc.
-
The snake grows by one unit when eating an food. The growth is immediately reflected by the gained length of the tail, i.e. the tip of the tail occupies the square on which the apple was.
-
The board size is fixed to square.
-
After an food is eaten by the snake, another food is placed randomly with uniform probability on one available squares of the board.
- Python.
- Pygame.
- Numpy.
- PyQt5.
- MainWindow Run the Game.
Project done under supervision of Prof. @Sara El-Metwally by :
@Ahmed Mohmmed abbas | section 2