RU EN
Sign in

Kingdom.py

Screenshot 1
Screenshot 2
Screenshot 3
Screenshot 4
Screenshot 5
Screenshot 6
Screenshot 7
Screenshot 8

Description

Roadmap


About the Game

You don't click to build. You write Python.

You start on a small island with one hero, a town hall and a file called main.py:

change_profession(Builder) build(House, 3, 4) build(House, 3, 8)

Press Run. The hero walks to the plot and builds, one line at a time, while the editor lights up the line being run. If a line is wrong, the game points at it and says why in plain words.

A town builder whose economy runs on your scripts

Houses pay taxes, but only when someone comes to collect. Lumberyards stop when their groves run out. Fields have to be sown, then harvested before the grain rots. Bakeries turn grain and wood into bread, mines eat bread, smithies turn iron into tools. Bandits row in and rob homes unless a guard gets there first, and merchant ships sail off if your goods aren't on the pier in time.

Each of these is a small program, and the story walks you through them. Its chapters open Python step by step, the way the tree opens buildings: variables, while loops, if, for, lists and dicts, functions, modules. One collect() becomes a loop, the loop learns to check the stock, the check becomes a function, and one day four heroes run four programs that split the work through a shared database.

Then the townsfolk move in

They take jobs at your workplaces, get paid, shop at the market and pay taxes. They chat on street corners, fall in love, marry, have children and grow old. Some of them steal, and some of the watch take bribes. The dead wander the streets as friendly ghosts until you build a graveyard.

You can script them too:

  • Every trade follows a shift program you write. shifts/farmer.py tells the farmers where to help, when to carry and when to rest. Run two versions on alternate shifts and compare the reports.
  • town.people() reads the whole town. Arrest a suspect, play matchmaker with town.match(), issue decrees.
  • Each person's personality is six small Python functions: love, work, hands, conscience, warmth and temper. Children take each one from their mother or their father, and now and then something new turns up. Write a rule of your own, have the Ministry of Propaganda announce it, and watch it spread through the generations.

Six islands, one market

Build the Trade Guild and trade with six neighbouring islands at live prices. Storms, strikes and festivals move the market. Sell by hand with market.sell(Wood, 50), or write a trading bot that reads the news wire. The islands also send commissions and, if you turn git on, pull requests to your scripts. Read the diff before you merge.

A real coding desk

  • Code windows float over the island or tile like an IDE, with highlighting, autocomplete, snippets and a Python console that answers questions about the town.
  • ps, top, kill and cron in the console. Every program in the kingdom is a process, even the crabs'.
  • Git with commits, branches, merges and tests that run before every commit.
  • The real numpy, pandas, matplotlib and requests. The requests are carried by pigeons.
  • An algorithms room where ten algorithms run step by step next to your own version.
  • Your scripts are plain .py files. Edit them in VS Code and the game picks up the change.

Never coded? The story is written for you.

Short chapters, a Code School with examples you can run, hints, and a reference solution for every chapter. A newcomer needs about eight hours for the story. After it come the grand projects: a lighthouse, an observatory, a great granary, a cathedral and a royal palace, each costing a small fortune.

System requirements

WINDOWS:

Minimum:
  • Requires a 64-bit processor and operating system
  • OS: Windows 10 (64-bit)
  • Processor: Intel Core i3
  • Memory: 4 GB RAM
  • Graphics: Nvidia Geforce GTX 550/equivalent or higher*
  • DirectX: Version 11
Recommended:
  • Requires a 64-bit processor and operating system
  • OS: Windows 10 (64-bit)
  • Processor: Intel Core i3
  • Memory: 4 GB RAM
  • Graphics: Nvidia Geforce GTX 550/equivalent or higher*
  • DirectX: Version 11
  • Network: Broadband Internet connection

Similar games

50% cheaper than Steam
The Farmer Was Replaced

$3.52 $5.03-30%

+1 bonus for this purchase

The Farmer Was Replaced

Open
51% cheaper than Steam
Turing Complete

$9.86

+4 bonuses for this purchase

Turing Complete

Open
44% cheaper than Steam
Kingdom Inc.

$4.50

+1 bonus for this purchase

Kingdom Inc.

Open
48% cheaper than Steam
Code: Terraform

$7.79

+3 bonuses for this purchase

Code: Terraform

Open
67% cheaper than Steam
shapez 2 - Factory

$9.99

+4 bonuses for this purchase

shapez 2 - Factory

Open
Available here
Alchemy Factory

Alchemy Factory

Open
44% cheaper than Steam
Find The Needle

$7.18 $8.45-15%

+2 bonuses for this purchase

Find The Needle

Open
77% cheaper than Steam
Opus Magnum

$2.30 $4.61-50%

Opus Magnum

Open
46% cheaper than Steam
Data Center

$4.87

+1 bonus for this purchase

Data Center

Open
74% cheaper than Steam
Message From Aliens

$2.55

+1 bonus for this purchase

Message From Aliens

Open
77% cheaper than Steam
SHENZHEN I/O

$3.40

+1 bonus for this purchase

SHENZHEN I/O

Open
64% cheaper than Steam
Dorfromantik

$3.28 $5.05-35%

+1 bonus for this purchase

Dorfromantik

Open
54% cheaper than Steam
JOY OF PROGRAMMING - Software Engineering Simulator

$8.28

+3 bonuses for this purchase

JOY OF PROGRAMMING - Software Engineering Simulator

Open
46% cheaper than Steam
Ghost in the SQL Data

$4.87 $5.41-10%

+1 bonus for this purchase

Ghost in the SQL Data

Open
44% cheaper than Steam
Artillery Miner

$4.50

+1 bonus for this purchase

Artillery Miner

Open