Python Microproject
Python Microproject
MICRO PROJECT
Academic year:
2023-2024
Snake is a classic video game where the player controls a snake, maneuvering it around on a
bordered playing field. The objective is to eat as much food (represented by orbs in most
versions) as possible, which causes the snake to grow longer. The player must be careful not
to let the snake collide with the boundaries of the playing field or itself, as doing so results in
game over.
The game was first developed by Taneli Armanto for the Nokia 6110 phone in 1998 and
quickly gained popularity due to its simple yet addictive gameplay. It has since been released
in various forms and versions for different platforms and devices, with some including
additional features like multiplayer modes and power-ups.
Despite its simplicity, Snake offers a challenging and engaging experience that has stood the
test of time, making it a beloved game around the world.
o Resources Required:-
02. Software
o Weekly Progress Report (Action Plan) Micro-Project:-
Sign of Student:-
1. 2. 3.
Sign of Faculty
INDEX
Academic Year: 2022-2023 Name of Faculty: Mrs. Nilofar Mulla.
Semester: 6th
1. Brief description
8. Conclusion
10. Annexure IV
Part – B
Title of Micro Project: -
Snake Game
1.0 Brief Introduction: -
➢ The Snake game is a classic and popular game where the player controls a snake that
moves around a grid, eating food and growing in length while avoiding collisions with
the boundaries of the grid or its own body.
➢ The objective of the game is to achieve the highest score possible by eating as much
food as possible without colliding into the grid boundaries or the snake's own body.
The game is typically over when the snake collides with the boundary or itself.
➢ The player can control the direction of the snake's movement by using arrow keys or
other keyboard keys. The snake will continue to move in the same direction until the
player changes it. As the snake eats food, its length increases, making it more
challenging for the player to avoid collisions.
➢ The game can be implemented in various programming languages, including Python,
using different libraries or frameworks. Some common libraries for creating Snake
games in Python include Pygame, Turtle, and Kivy.
➢ The game logic typically involves setting up the initial state of the snake, food, and
game boundaries, and then running a loop that updates the state of the game based on
user input and game rules. The game display is updated after each iteration of the
loop, showing the snake's movement and the food it eats.
➢ The game can be customized in various ways, such as changing the grid size, snake
speed, and game rules. Additional features can also be added, such as power-ups,
obstacles, and multiplayer modes.
The result is a simple Snake game where the player controls the snake's movement using
arrow keys or other keyboard keys, and the snake grows in length as it eats food. The game
ends when the snake collides with its own body. The game can be customized with different
grid sizes, snake speeds, and game rules. Additional features can also be added, such as
power-ups, obstacles, and multiplayer modes.
Results:
6.0 Conclusion:
In conclusion, the Snake game is a classic and popular game that can be easily
implemented in Python . The game involves controlling a snake that moves
around a grid, eating food and growing in length while avoiding collisions with
the boundaries of the grid or its own body.
7.0 Skill Developed / learning out of this Micro-Project: