Pwp Mic Final
Pwp Mic Final
M.S.B.T.E.
1
Evolution sheet for Micro Project
Academic Year:- 2024-25 Name of Faculty:- Ms. A. M. SAWANT
(c) Outcomes in a. Team Spirit: Foster collaboration and camaraderie in group work.
b. Resilience: Build persistence in problem-solving despite challenges.
Affective Domain: c. Empathy: Enhance appreciation for peers’ strategies and experiences.
Marks out of 4
Marks out of 6 Total
for
for mars
Roll No Name of students performance
performance in out of
in oral/
group activity 10
Presentation
24 Kazi Ziyan Jakilali
30 Pawar Girish Nagesh
23 Davale Vaibhav Abhangrao
34 Amankhan Khalil Pathan
2
SVERI'S COLLEGE OF ENGINEERING (POLYTECHNIC), PANDHARPUR.
CERTIFICATE
is a bonafide work carried out by above students, under the guidance of Ms. A. M. SAWANT
and it is submitted towards the fulfillment of requirements of MSBTE, Mumbai for the award of
Diploma in Information Technology at SVERI’s COE (Polytechnic), Pandharpur during the academic
year 2024-2025 .
(Ms. A. M. SAWANT)
Guide
(Mrs. R. K. Malgonde) (Dr. N. D. Misal)
HOD Principal
Place: Pandharpur
Date: / /
3
INDEX :
1. Rationale 6
4. Literature View 6
5. Program 7, 8, 9,10
6. Output 11
10. Conclusion 13
11. References 13
4
Acknowledgement
5
“ Snake Game Using pygame Library ”
1. Rationale:
The Python Snake Game microproject is a great way to learn programming by
applying fundamental concepts such as loops, conditionals, and data structures in a
practical setting. It helps build essential skills in game development, like handling
user input, managing real-time graphics with libraries like Pygame, and implementing
game logic (e.g., movement, collision detection). This project encourages modular
code design and problem-solving, while also providing a tangible, interactive result,
boosting confidence and motivation. Additionally, it lays the groundwork for more
advanced game development projects by introducing concepts like animation, speed
control, and code optimization.
4. Literature Review :
The Snake game project is widely used in programming education to teach core concepts
like loops, conditionals, data structures, and algorithm design. Studies highlight its
effectiveness in helping beginners understand basic programming principles and game
development, especially when using libraries like Pygame. The project encourages
problem-solving, modular code design, and debugging skills, making it an ideal tool for
learning and practicing programming in an engaging, hands-on way.
6
5. Program:
import pygame
import time
import random
# Define colors
white = (255, 255,255)
yellow = (255, 255, 102)
black = (0, 0, 0)
red = (213, 50, 80)
green = (0, 255, 0)
blue = (50, 153, 213)
7
# Function to draw the snake on the screen
def our_snake(block_size, snake_body):
for x in snake_body:
pygame.draw.rect(screen, green, [x[0], x[1], block_size, block_size])
x1_change = 0
y1_change = 0
snake_body = ->
length_of_snake = 1
# Handling keypresses
for event in pygame.event.get():
if event.type == pygame.QUIT:
game_over = True
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_LEFT:
x1_change = -block_size
y1_change = 0
elif event.key == pygame.K_RIGHT:
x1_change = block_size
y1_change = 0
elif event.key == pygame.K_UP:
y1_change = -block_size
x1_change = 0
elif event.key == pygame.K_DOWN:
y1_change = block_size
x1_change = 0
pygame.display.update()
clock.tick(snake_speed)
pygame.quit()
quit()
10
6. Output :
11
7. Actual Resource Used:
11. References:
https://www.geeksforgeeks.org/
https://www.javatpoint.com/
https://chatgpt.com/
13
14