Kingdom.py is a singleplayer strategy and simulation game that blends town building with real Python programming. Players write scripts that control heroes and eventually the townsfolk themselves, creating an automated settlement on a small island that expands through trade, farming, and defense against bandits.
Gameplay
The core loop centers on writing and refining Python code that directs up to four heroes. Commands handle construction of houses and production buildings, planting and harvesting crops, tax collection, and combat against incoming threats. The in-game editor highlights the currently executing line and provides clear error explanations when a script fails. Scripts run as plain .py files that update automatically when edited externally in any text editor.
Research unlocks both new buildings and programming concepts in parallel, starting from basic print statements and progressing to loops, conditionals, lists, functions, and modules. Townsfolk arrive over time, take jobs, pay taxes, form relationships, marry, and raise children whose inherited traits are defined by small Python functions for personality aspects such as work habits and social behavior. The economy relies on resource chains including fields feeding bakeries, mines supplying smithies, and granaries vulnerable to rats or fires. Trade occurs with six neighboring islands through a merchant guild, where prices fluctuate based on weather, strikes, and festivals.
Advanced features include access to real Python libraries such as numpy, pandas, and matplotlib, allowing players to analyze kingdom data and generate plots directly within the game environment. A rubber duck pet that follows the first hero can be toggled in the mods window, and the supporter pack provides four desk themes, four hero outfit sets, eight desktop wallpapers, six phone wallpapers, and an original harp-and-flute music track titled Harbor Morning, all without altering core mechanics or balance.
Game Modes
The game operates entirely in a singleplayer story-driven format. Thirty-six sequential chapters guide players from basic commands through increasingly complex automation tasks, each offering optional hints and a reference solution. There are no separate multiplayer, survival, or challenge modes; progress occurs through the narrative campaign that teaches both town management and Python simultaneously. The experience remains consistent whether the supporter pack is installed or not, as town systems, story progression, and program execution function identically in either case.
Customization and Support Options
Four desk themes become available in the theme shop after researching the relevant technology. Hero outfits for rangers, town guard, royal court, and wizards apply uniformly to all eight heroes via the mods window and update their card portraits accordingly. Wallpapers and the included music track serve as personal desktop or device enhancements. These additions emphasize support for the developer without providing any in-game advantages.
Is It Worth Playing?
Kingdom.py appeals most to players interested in programming, automation, and thoughtful simulation. Recent player feedback shows 91 percent positive reviews from a modest number of ratings, reflecting appreciation for the educational structure and the satisfaction of watching scripted systems operate independently. The game launched in November 2026 and continues to receive text refinements and bug fixes. Those seeking a hands-off town builder combined with genuine coding practice will find the campaign rewarding, while players expecting traditional click-to-build mechanics or competitive elements may prefer other titles in the strategy genre. The low concurrent player numbers indicate a niche but dedicated audience.