You may remember PyScript from last month. PyScript is a framework that allows us to write python code and run it natively in the browser - no backend server needed and no user installation required.
One of the things that I'm most excited about is using PyScript to write small games with a web UI. Getting a nice UI on to a python program is pretty complex. You typically need to learn a complex GUI toolkit or use a framework like pygame.
With PyScript, we can now create a UI using web technologies - HTML and CSS and use python to code the game logic. This is makes creating small, fun games a lot easier.
We just released a video on our YouTube channel showing how to implement a Tic Tac Toe game from scratch in just 10 minutes. Check it out below
Did you like this article?
If you liked this article, consider subscribing to this site. Subscribing is free.
Why subscribe? Here are three reasons:
- You will get every new article as an email in your inbox, so you never miss an article
- You will be able to comment on all the posts, ask questions, etc
- Once in a while, I will be posting conference talk slides, longer form articles (such as this one), and other content as subscriber-only