Simpe Snake Game

Simpe Snake Game

Simpe Snake Game

Date

Date

Date

2024

2024

2024

Script

Script

Script

Python

Python

Python

Modules

Modules

Modules

pygame

pygame

pygame

Overview

My first Python mini-game project was basically a classic Snake game, but with a few modifications. I tweaked the visuals and added some extra options. There are still a few bugs, but they don't happen all the time. It's more like, every now and then, triggered by an event or a bit of bad luck.

For the sourcecode, just tap the link, it will redirect to github, theres also readme for that.

Snapshots


Explanation

  1. When running the game, the first pop-up will be "Enter the minimum score to win", allowing users to set their own target score.

  2. For example, I set the minimum score to 10

  3. In game preview, the snake colored as green, the food colored as red,so i need to eat the food (red blocks) untill 10 (score) to finish.

  4. Once the user has completed the game, they will be presented with a choice between "Restart" and "Exit".

    If they choose "Restart", they will be able to continue playing with the same minimum score that was set at the beginning. For example, if the minimum score was set to 10, then after pressing "Restart", the minimum score will be 10 again.

    The "Exit" button would simply exit the program.

Conclusion

There's still a bug left over from bad coding and poor optimisation of the script, but I'm not going to waste time fixing it since it doesn't occur very often.

More projects

Got questions?

I’m always excited to collaborate on innovative and exciting projects!

Direct Messages

Got questions?

I’m always excited to collaborate on innovative and exciting projects!

Direct Messages

Got questions?

I’m always excited to collaborate on innovative and exciting projects!

Direct Messages

Built in framermotion · Made by tailwindcss · ©2025 rifkys

Built in framermotion · Made by tailwindcss · ©2025 rifkys

Built in framermotion · Made by tailwindcss · ©2025 rifkys