Student: Helia Chan (Age: 15)
Project: A Snake Game (developed using Python)
Description: Snake is a video game which the player controls a line which grows in length and moves in a controlled direction, usually by using the arrow keys. The programming language used to create this particular project is Python, with additional programming libraries such as pygame, time and random.
Rules of my Python Snake game: The player controls the snake’s direction by pressing the arrow keys. The snake will automatically move forward.
To win the game, thee player must gain 10 points by controlling the head of the snake. The player will lose if the snake head hits the walls or its body.
During the development stages, I encountered some issues with the code, with one example being pygame.draw(). It was not functioning until I added an update for the loop. There was no optimal wait function in python according to my knowledge, so I used Clock.tick and FPS to set how fast I want my loop to run. These solutions were found by doing research online, and I believe it can be a very effective way of learning.