[Python] Guessing Game // Rate Spiel
Short: Over the course of the last year I tought myself Python programming for my masters thesis. I noticed the skill slipping, so I built a guessing game for a small programming project.
I was looking for apartments in Berlin over the course of last week. When Saturday came around as an island day, of no scheduled visitations, I had a few hours of time, and my laptop with me.
I remembered how I liked programming Python over the course of my masters thesis, even though the process was often stressful, due to time pressure and scale. How nice would it be to just code something small, for fun?
Theres LOADS of nice training challanges for programming Python and I just picked the first item of a list of them on freecodecamp.org: Programming a guessing game, where the computer picks a random number and has you try to guess it.
I love how even small programming tasks like these can absorb my mind and let me learn new things or deepen old ones. There is just this nice mix of gratification (when something works the way you want; or you think of new ways to improve your program) and discovery (when you learn how a function can be implemented; or when you realize you can write shorter code)! Listening lo-fi music and letting time fly by while programming, is closest I can trick my brain into liking puzzling.
In the end I expanded on the framework of the tutorial, and added fool proofing, and bundled the Python-file up in an .exe-file.
Below you find the links to my favourite Spotify low-fi playlist, as well as the link to the guessing game on my GitHub page.
Thank You for reading, and stay beautiful!