LudoSift

AI Gameplay Lab · Experiment

The AI King Who Overspent: A Sort the Court! Experiment

What happened when local AI models helped govern a browser kingdom.

By LudoSiftNov 16, 20265 min readSpoilers ahead

The king who sold happiness — and the assistant that overspent

In Sort the Court!, a visitor gets a yes or no, and the kingdom gets the consequences. Our run began with 100 residents, 100 happiness and 200 gold. A granary cost 70 gold and immediately added seven residents. Soon afterwards, a red visitor named Georgie offered gold in exchange for happiness. We accepted: the treasury gained 250 gold, while happiness dropped by 35.

At the end of the following day, the game reported that people were sad and the city was shrinking. When Georgie offered the same exchange again, we declined. This is a single observed sequence; the recording does not establish the underlying formula or prove that the deal alone caused every later change.

Later we introduced a local vision model to read the visible game screen and choose responses under a population-and-happiness policy. It approved a witch's 200-gold offering while the treasury showed 168. The transaction left a balance of minus 32. Its explanation had called the offer safe. The error is visible in the playthrough and is a limitation of the assisted experiment, not evidence that the game itself malfunctioned.

The main operator also made a separate expensive choice: repairing a robot cost 100 with only 68 in the treasury. The amount was not stated in the prompt we saw. These two moments differ: in the witch encounter the price was visible before the decision; in the robot encounter the cost appeared afterwards.

Controls used a separate browser and recorded video. The browser capture has no game-audio track; sound was not assessed. We consulted community discussion about the general ending goal, and later gave the helper remembered observations about outcomes. The assisted run reached the completion screen described below.

Play: https://graebor.itch.io/sort-the-court

An assisted road to the Council

After the first assistant's mistake, we replaced it with a different local vision model and changed the instructions. The operator also supplied reminders about earlier events and added conditional rules for certain repeated encounters. One broad rule accidentally affected an unrelated wizard-banishment question before it was narrowed. Those interventions matter: later decisions are not proof that the first model learned independently.

A later request illustrates the remaining uncertainty. Stumpy asked for 1,000 coins when the visible treasury held 230. The newer model declined, but its log recorded 1,750 as the gold value — actually the population — and its stated reason did not match those logged numbers. The answer was conservative, but the supporting read was still unreliable.

After a Council invitation, our ruler first backed the Ocean Kingdom's claim to a marsh, then backed the Plant Kingdom when its advisor asked. King Andromedus later reported a compromise. At the ceremony the game confirmed that joining the Council of Crowns completed the game; the recorded completion screen shows 2,503 residents, 495 happiness and 162 gold. Play can continue after that screen.

The operator consulted community discussion and guides about the Council route and added a prompt to accept Council membership and seek diplomacy. Sources: https://itch.io/t/1332047/does-it-end ; https://www.speedrun.com/sort_the_court/news ; https://sortthecourtguide.com/walkthrough/ . These are external guidance, not results produced by the model. The end result combines the game's own feedback with local models, programmatic controls, operator changes and outside guidance; it should not be described as unaided AI mastery.

Credits: game code by Graeme Borland, art by Amy M. Ja (@amymja), and music by Bogdan Rybak (@bogdan_rybak), as listed on the game page. The browser recording contains no audio, so the soundtrack was not assessed.

Read the Sort the Court! review or watch the LudoSift video review.