PYTHON:KINGDOM WARS is an indie strategy game in which you control the army with Python scripts instead of a mouse. You write code for six fantasy unit types and send them into real-time battles on a grid map. Your opponents run logic that a large language model generated in advance.
Six units, every order in code
Your scripts decide each soldier’s moves, attacks, heals and spell casts. Each unit type has its own stats, attack pattern, skills and cooldowns:
- Infantry is cheap and suited to blocking or swarming.
- Cavalry is fast enough to flank and dive at the backline.
- Archers deal ranged damage but need cover.
- Mages hit an area on long cooldowns.
- Priests heal and keep the front line standing in long fights.
- Ballistae move slowly and hit hard.
Plans can range from focusing fire on the enemy core to grinding forward with masses of infantry or writing pathfinding that takes cavalry around to the rear.
How a battle runs
The store page calls the combat real-time turn-based. Your script receives the battlefield state every frame, and a unit’s speed sets how often it acts, so fast and slow troops move at different rhythms. Units move up, down, left and right across the grid, and the game checks whether targets are within attack range. Killing an enemy earns half of its recruitment cost in gold. Pathfinding, target priorities and army composition are all up to your code.
Tutorials and LLM challenges
There are 20 levels. Ten tutorials cover unit mechanics, map interaction, the command system and scripting techniques. In the ten challenge levels you face code written beforehand by a language model, with strategies that adapt during the fight. The developer also lists teachers and students among the intended audience.
The store page is mixed on the entry barrier. It says the tutorials start from zero, but it also warns that players with no Python experience should learn the language first. Visual Studio Code is strongly recommended, and the game launches it automatically.






![Nod32 fresh keys for [Y] year. Nod32 fresh keys for [Y] year. - photo №72628](https://qame.info/wp-content/uploads/2023/11/nod32.webp)

