Python web game
- 4 Devlogs
- 4 Total hours
After covering a lot of work over the past few days and facing multiple issues, I’m done. I’ll send a demo link and share more details tomorrow in the morning but overall, it has all been about getting all the code to work and co-exist with each other.
Some screenshots and a personal score tracker of your overall score, i hope it’s good.
It was pretty cool working on a project like this!
I just faced some issues with my keyboard absolutely blowing up and some other hiccups I made in the code. Otherwise, I had some issues with the movement for the arrow keys and a little with regards to the movement of it.
Follow along for more! @Danu.journey on instagram
Right, so to discuss what changed and what’s wrong?
I’ve just switched out the Brython for Pyodide script now, which is all good; it’s working pretty well, and hosting isn’t an issue either.
The 4*4 table is set too! With loads of div containers.
I’m extremely unsure why exactly are there no boxes appearing like the 2, 4, 8, etc. and it has been that way for the past 1 hour and I’m unable to find a solution!
Thanks for reading and follow along! My username is @Danu.journey on instagram I post loads of different content about engineering and other disciplines!

Here we go! So initially, I came up with the idea of having a Python web game, which would be a 2048 game, something I did work on around 4-5 years back when I was a kid, toying around with code.
So instead of someone just opening the file straight up, you run a small command in your terminal or the command prompt.
python -m http.server 8000
when you run this it just starts everything up for you and you don’t really have to focus on it with a headache!
I used an on-the-fly translator, aka Brython, which is a widely available resource i used - CDNJS library.
Unfortunately, it’s getting blocked by my browser, and so is it for a few others. I’ve decided to switch it out for Pyodide which acts as a WebAssembly, basically packing Python as an engine and putting it into a web page (for everyone to use and understand)
Well, since I came across a mix of errors i’m going to be re-editing the code and breaking stuff up into different parts to adjust things for Pyodide!
Thanks for reading my Devlog! If you did find it interesting, do follow my professional account on Instagram @Danu.journey i’m going to be posting some of my work there too! If you’d like to add me on LinkedIn, my username is Daniyal Ali. See you around i hope you tag along on the journey! 