[SOLVED] Python-Snake and Apple Game

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)

When the snake eats an apple, the length of the snake grows by one size.
The apple will be randomly displayed on the map.
If the snake eats its own tail, then game is over.
You can choose to restart by clicking the “Enter” button, or exit the game by clicking the “Esc” button.

## How to play the game?

Simply by clicking the “up”, “down”, “left”, and “right” button on your keyboard.

## Fun Features

– Your score is on the top right corner.
– There will be a “ding” sound when the snake eats an apple.
– Also, there will be a “crash” sound when the snake eats its own tail.
– Background music will always display until the game ends.

## Game Walkthough GIF

<img src=”https://media.giphy.com/media/hFc2AGyZGXCT1R1EOJ/giphy.gif?cid=790b7611ffd3b932d93fccab77b3accc95c3a0016122726d&rid=giphy.gif&ct=g” width=500><br>

## Packages

– Pygame

## Executable
– “.exe” file is available

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.