Kingdom.py quick specs
- Estimated time to 100%: 40-50 hours
- 100% difficulty: 6/10 (moderate)
- Playthroughs needed: 1 playthrough
- Missable achievements: No missable achievements
- Total achievements: 47
In this guide I break down all 47 Steam achievements in Kingdom.py so you can plan your run properly. This is a unique town builder where your economy runs entirely on real Python scripts instead of mouse clicks. The achievement list leans heavily into programming jokes, simulation management, and milestone progression through the acts. Looking it over, it is a fun mix of natural gameplay milestones and specific coding challenges that will test both your logic and your simulation pacing.
Kingdom.py achievement guide overview
| Developer | Kingdom Labs |
|---|---|
| Publisher | Kingdom Labs |
| Genre | Casual, Indie, Simulation, Strategy |
| Release date | Nov 5, 2026 |
| Platforms | Windows, macOS, Linux |
| Steam achievements | 47 |
| Steam page | Kingdom.py on Steam |
My honest read on this list is that it sits at a moderate difficulty level mostly because of the coding puzzles and efficiency challenges. You will need a solid grasp of basic loops, variables, and logic gates to clear the stricter line-count and production-rate requirements. Time-to-100 percent will vary depending on your comfort with writing scripts, but expect a solid double-digit hour investment to unlock everything across the islands. There are no strict missables that lock you out permanently since you can always rewrite scripts and adjust your town, but keeping an eye on specific stat thresholds early on saves you plenty of backtracking.
My roadmap guide for Kingdom.py
The most straightforward way to tackle the achievements is to follow the acts sequentially from Act I through Act VII. The game naturally introduces programming concepts as you unlock new buildings and regions, so let your town grow organically while you learn the syntax. Once you finish the main acts and have a stable economy running at high copper generation rates, you can start tackling the specific efficiency and automation achievements. Saving the high-rate production goals and hands-off idle challenges for the late game makes your life much easier.
Tackling the hardest coding challenges
The toughest achievements on this list are the ones that force you to optimize your code under tight constraints. Short and sweet requires earning 40 copper a minute while keeping all running code to at most 8 lines, and No ifs, no buts demands cutting 12 wood a minute without using a single if statement. To beat these, you will need to rely heavily on mathematical tricks, list comprehensions, and clean logic rather than bloated conditional statements. Take your time testing different script structures in the editor until you find the most compact solution.
Hidden and quirky achievements
A handful of hidden achievements relate to common programming errors and console commands, such as Division by zero, Recursion is too deep, and kill -9. You will likely trigger a few of these naturally just by writing buggy scripts and testing out the terminal. Other fun achievements involve interacting with the simulation quirks, like opening a baby’s card while its grandmother is carrying it, checking out the crab in the top hat, or getting your cats to clear out a rat’s nest.
All 47 Kingdom.py achievements
main.py finished
Run main.py to its end without an error.
35.7% of players
This one is tied to finishing the core script without crashing. It is straightforward and story-related as you progress through the basic tasks.
main.py starts again with your changes
Fix main.py after an error and start it again. It has to run to its end, or for ten game minutes, without another error.
24.7% of players
After your script hits an error, fix the code and run it again successfully for ten minutes or until the end. This is a normal part of the trial-and-error loop in this game.
Picture saved
Save a picture with the photo key (F9).
0.9% of players
Just press the F9 key to snap a picture. It is easily missable only if you never touch the photo feature.
Not Hero 1
Give hero 1 a name of your own: double-click the name on the hero’s card.
2% of players
Double-click a hero name on their card to edit it. It is a quick and simple action you can do right at the start.
Did you mean ‘build’?
Hidden achievement · 1.7% of players
This hidden achievement likely triggers from a specific typo or command input error. Keep an eye out for unusual text interactions.
Division by zero
Hidden achievement · 0.5% of players
You will likely unlock this hidden achievement by triggering a classic math error in your scripts. It is a fun nod to programming tropes.
Off the map
Hidden achievement · 6.5% of players
This hidden achievement involves exploring beyond the usual borders or trading with distant islands. It takes a bit of time to reach the edges.
The captain looked grumpy
Hidden achievement · 20.7% of players
Look for a specific interaction with the captain to trigger this hidden achievement. Check in on your military leadership when things are stressful.
Recursion is too deep
Hidden achievement · 0.3% of players
This hidden achievement points toward writing a function that calls itself too many times. Watch out for infinite loops in your logic.
With apologies
Hidden achievement · 0.2% of players
A hidden achievement likely tied to a specific script error message or a polite correction mechanic. Expect it to happen naturally while debugging.
pre-commit
Have a commit turned back by a failing test, then make a commit that passes.
0% of players
Fail a test on a commit and then immediately pass the next one. You have to actively break and fix your workflow to get this.
fix
Hidden achievement · 0% of players
This hidden achievement probably requires resolving a persistent bug in your town’s automation. It is likely a bit of a grind to set up the right failure state.
kill -9
In the console, use kill -9 on a runaway program: one stuck in a loop that never waits.
0% of players
Use the kill command in the console on an infinite loop. It is a neat Linux reference for stopping runaway processes.
import pandas as pd
Build a DataFrame from history() in a hero’s program: pd.DataFrame(history()).
1.3% of players
Write a script for a hero that pulls data history into a pandas DataFrame. You need a basic grasp of the game’s data export commands for this one.
Operation not permitted
Hidden achievement · 0.3% of players
This hidden achievement likely triggers when you try to execute a restricted command or access forbidden data. It is a fun little security check.
git revert
Revert a commit after which the town earned less copper a minute than before it. The History tab shows both numbers three minutes after a commit.
0% of players
Revert a bad commit after checking the History tab to see your copper production drop. Make sure you wait three minutes after committing to verify the numbers.
Sir Scuttle
Open the card of the crab in the top hat.
1.5% of players
Find the crab wearing a top hat and open its card. It is a fun little easter egg tucked away in the UI.
The cats have cleared the rats out
Give the town a cat. Then the cats have to clear a rats’ nest.
2.7% of players
Adopt a cat for your town and wait for it to deal with a rats’ nest. It takes a little patience for the simulation to trigger the pest control.
Turned back
A raid of the Red Tide sees a guard at the door and turns back.
2.3% of players
Have a guard stationed at the door when a Red Tide raid arrives so they retreat. Positioning your defenders properly is key here.
Carried by Grandma
Open a baby’s card while its grandmother is carrying it.
0.5% of players
Open a baby’s card while the grandmother is holding it. Since it relies on family states, it might take some time to line up.
With nowhere to rest
Open the family tree of a restless ghost.
1.2% of players
For this hidden achievement, you need to open the family tree of a restless ghost. It is a bit obscure, but keep an eye on your graveyard mechanics as your town ages.
Paper
Save a picture while the ASCII look is Paper (Settings, ASCII).
0.4% of players
Head into your settings, switch the ASCII look to Paper, and save a picture using the photo mode. It is entirely missable if you never mess with visual filters.
Act I · First steps
Finish act I.
20% of players
This is a straightforward story-related achievement unlocked simply by finishing the first act of the game. Just follow your standard scripting loop.
Act II · Bread and the sea
Finish act II.
6.7% of players
Complete the second act to unlock this one. It is tied to main story progression across your growing island settlements.
Act III · Iron and bandits
Finish act III.
3.4% of players
Finish the third act to grab this achievement. Expect tougher bandit management as your scripts scale up.
Act IV · The town grows
Finish act IV.
2.5% of players
This pops naturally when you finish the fourth act. Your town will need to be running efficiently by this point.
Act V · The Red Tide
Finish act V.
1.4% of players
Survive and finish the fifth act to secure this story milestone. Watch your resource lines closely during this phase.
Act VI · A town that runs itself
Finish act VI.
0.9% of players
Finish the sixth act to unlock this achievement. At this point, your automation scripts should be doing most of the heavy lifting.
Act VII · The founders’ legacy
Finish act VII.
0.5% of players
This is the final major act completion achievement, marking the end of the main campaign. Expect a proper test of your Python optimization skills.
Short and sweet
Earn 40 copper a minute while all running code together is at most 8 lines.
19.3% of players
You need to earn forty copper a minute while keeping your total running code to eight lines or fewer. Write a dense, efficient script to hit this economic threshold.
No ifs, no buts
Cut 12 wood a minute with no if anywhere in the running code.
17.9% of players
Cut twelve wood a minute without using a single conditional statement anywhere in your running code. Rely on math or list indexing instead of branching logic.
A village at last
Grow the hamlet to 10 people.
39.4% of players
Grow your hamlet population to ten people. This is an early tutorial-style milestone you will hit naturally by expanding housing.
The Islands’ Library
Finish the side stories of the libraries lane and bring all their books home.
0.2% of players
This is a massive completionist side goal requiring you to finish the library lane side stories and collect all books. It will likely take a serious time investment.
One-man bakery
Bake 10 bread a minute with only one hero running a program.
8.3% of players
Bake ten bread a minute using only a single hero running a script. Optimize that one loop to handle farming, milling, and baking all at once.
Merchants’ favourite
Fill every order of three ships in a row.
12.3% of players
Fill every single order for three trading ships in a row. Keep your production steady so you do not fail the streak on the third ship.
Wedding bells
Five weddings in town.
31.4% of players
Simply wait for five weddings to happen in your town. This comes naturally over time as your population settles down and pairs off.
Nobody goes hungry
Keep six or more homes fed for ten minutes.
10.5% of players
Keep at least six homes supplied with food for ten consecutive minutes. Set up dedicated delivery scripts to ensure no home starves during a routine shortage.
Long arm of the law
The watch catches five thieves.
9% of players
Your town watch needs to catch five thieves red-handed. Make sure you have enough guards patrolling your storage areas.
Peace for the restless
A priest lays three ghosts to rest.
6.5% of players
Have a priest successfully lay three ghosts to rest. You will need a functioning church script and some spiritual unrest in town.
Treasure from the deep
A fisher hauls up a treasure.
4.4% of players
Wait for one of your fishers to randomly haul up a piece of treasure. This involves a bit of RNG, so just keep your fishing loops running.
Three generations
A grandparent and a grandchild live in town at the same time.
17% of players
For this achievement, you need a grandparent and a grandchild living in town at the same time. Since traits pass down through generations, you will want to keep your earliest citizens alive and happy while they raise families. It is a bit of a waiting game, so treat this as a long-term goal for your guide.
The kingdom runs itself
Five minutes without touching code or buttons, at 150 copper a minute and nobody hungry.
16.9% of players
You need to survive five minutes without touching code or buttons while maintaining a high income and zero starvation. Set up robust farming and tax collection scripts beforehand so your economy runs smoothly on its own. It is not missable, but you will need a well-optimized town.
Matchmaker
Your code arranges three weddings with town.match().
0.2% of players
This rare goal requires your code to arrange three weddings using town.match(). With such a low unlock percentage, you will likely need to write a script that evaluates personality traits and compatibility automatically. Keep an eye on your young adults to get this done efficiently.
Sharp eye
Your code arrests three culprits with town.arrest() – and is more often right than wrong.
0.6% of players
Your code has to successfully arrest three culprits using town.arrest() with a positive accuracy rate. Make sure your logic checks enough evidence before executing the command, otherwise false arrests will tank your ratio. It is a fun coding puzzle for your guide.
Capital of the isles
Grow the town to 90 people.
11.6% of players
Growing your town to ninety people is a standard population milestone. You will need to expand your housing scripts and ensure your food production scales up to support the influx. Expect a moderate resource grind as you balance your Python logic.
Guide of souls
Your code lays three ghosts to rest with town.lay_to_rest().
1.2% of players
This requires your script to lay three ghosts to rest using town.lay_to_rest(). Since it deals with ghosts, expect this to happen later in a playthrough once some of your older citizens pass away. It is spoiler-light, but definitely tied to the natural lifecycle of your town.
Every branch
Research everything in Unlocks.
1.9% of players
You need to research everything in the Unlocks menu. This is a massive resource sink that will require steady tax collection and trade across the islands. Plan on this being the final achievement you tackle in your guide.
Frequently asked questions
How many achievements are in Kingdom.py?
There are 47 achievements to unlock, including 8 hidden ones.
What are the hardest achievements?
The strictest code-constraint achievements like Short and sweet and No ifs, no buts are easily the most demanding since they require very tight, efficient Python scripts.
Are there any missable achievements?
There are no strictly missable achievements since you can always alter your scripts, manage your town, and retry goals at any time.
How long does it take to 100% the game?
Expect to spend around 40 to 50 hours depending on how quickly your scripts work and how much time you spend optimizing your town.
Are there any multiplayer achievements?
No, Kingdom.py is a single-player simulation game, so all achievements are earned solo.
Final thoughts on this guide
Good luck getting your scripts to run without throwing errors, and enjoy building your automated town.
Steam and the Steam logo are trademarks and/or registered trademarks of Valve Corporation in the U.S. and/or other countries. Steam Insider is an independent guide and is not affiliated with, sponsored by, or endorsed by Valve Corporation.