Skip to main content

Posts

Showing posts with the label Snake Game

Python : The Game

Well, it finally happened. I finished a project for the first time in my life. I never thought this day would come. I have so many people to thank. First and foremost, Frankie, with his soulless eyes, kept pushing me to achieve far and beyond.    That's the look of utmost happiness The Python Snake game project was my Grade 10 Final Project submission. Back then it was just a rudimentary shell of what it is today. It only implemented the single-player mode of the game, and it didn't have any of the bells and whistles it does today.  So here's my final post on this topic. Initially, I didn't plan on working on this project. I didn't feel like creating a game for the second time and decided I wanted to do something with a real-world value.  My plan was to expand on the idea of the COVID Calculator I had mentioned in one of my previous posts. With all this stuff going on in the world right now, what could get more 'real-world' than a program that predicts the ...

Python Snake

The Snake game is one of the oldest and most popular mobile games that first appeared on a Nokia phone or something. So I set out to recreate that game in Python just for the joke. I used Spyder. Modules needed: i) Pygame                              ii) Everything else is built-in. Because I'm bad at initiating stuff, this program was also based on ( read as 'copied from') a YouTube video: https://youtu.be/CD4qAhfFuLo The basic code is the same, I've only made cosmetic changes. Snake Because this project was basically copy-pasted, I felt a bit guilty ( just a little bit). So I decided to try to add a rudimentary self-playing algorithm. Basically, I tried to remove the 'game' part of The Snake Game and make it computer automated using a path-finding algorithm. After hours and hours of searching, I settled on the A* path-finding algorithm to do the work. But I ran into more prob...