Python-Playground and "Knights Vs Orcs"
by Bobby Smith - Written on January 30, 2026
Happy Friday, everyone!
Here is a quick post to share my Python-Playground repository and a quick simulation of fantasy combat I whipped up earlier today.
Python-Playground
Over the course of my many years programming I've always liked the idea of little code playgrounds where I can quickly get a quick idea out of my mind and into code. I've called these "Playgrounds". Places where I can play and not really think of anything beyond what I wanted to test or play with.
I've created many of these little playgrounds over the years and have always had them be something I had stuffed away on my hard drive somewhere, never to see the light of day. And many of these will still be found in a similar hidden state. But, I feel like it might be fun to share some of these publicly if others may find them of use or interest.
Screenshot of the Python-Playground repository. Taken on January 30, 2026.
So that is what I am doing. I've uploaded a repository to Github with the name Python-Playground. This is a place where I can store my little ideas and prototypes that take not much longer than an hour or so to complete. They are each given an individual folder within the repo to keep it easy to sort through.
As you may have noticed this is the "Python"-Playground. I like to separate out my playgrounds into the languages they use to make it as easy as possible to get up and running on new ideas and keep similar ones together. Especially when I used to use things like Visual Studio. Now a days I use mainly VS Code.
If you want to use them, please go ahead. It's all MIT Licensed and open for the public.
Check out the Python-Playground repository on GitHub by following this link.Knights Vs Orcs
Knights Vs Orcs was my quick little playground project for the day. I wanted something quick to work on to give me a good dopamine boost and play around in python for a bit. Yesterday it was a little Wordle Guessing program, which you can also find in the Python-Playground repository.
Screenshot of the Knights vs Orcs simulation results. Taken on January 30, 2026.
Knights Vs Orcs is a simple Knight and Orc combat simulation where simple Dungeons & Dragons like rules define how these two interact. The orcs and knights have randomly selected weapons and armor that adds a bit more complexity to the sim. It also runs it over the course of 10,000 cycles and gathers some stats to make it easier to tune. Over the course of a few test runs I was able to tune it in such a way that both the orcs and knights seemed the most balanced. Please take a peek at it and run with it if you want to.
This is also found on my Python-Playground Github Repository.
Here is the link directly to the Knights vs Orcs python script.In the Future
Part of me thinks it would be fun to create a JavaScript implementation of this with a few tunable aspects to it for the Webtoys page, but that is for sometime in the future.
And that is all for today. Have a great day, a great weekend, and I'll see you next time!