

Command six unit types with Python and fight real-time wars against AI large language models. Write code. Build tactics. Control the battlefield. 10 tutorial levels to get you started. 10 AI LLM challenge levels to conquer. Others play with reflexes. You play with algorithms.
Overview
Command six unit types with Python and fight real-time wars against AI large language models. Write code. Build tactics. Control the battlefield. 10 tutorial levels to get you started. 10 AI LLM challenge levels to conquer. Others play with reflexes. You play with algorithms.
Description
You don’t command your army with a mouse. You command it with Python.
Write scripts to lead infantry, cavalry, archers, mages, priests, and ballistae into real-time battle against enemy forces. Every move, attack, heal, and spell is decided by your code.
The battlefield changes every frame.
Every decision is yours to script.
You can focus fire and delete the enemy core. You can swarm with cheap infantry and grind your way forward.
You can write pathfinding logic to flank the backline. You can program your priests to keep the front line alive.
How strong your tactics are depends on how smart your code is.
Six unit types, each with unique stats, attack patterns, skills, and cooldowns:
Infantry — Cheap frontliners, ideal for swarms and blocking
Cavalry — High mobility, built for flanking and backline dives
Archers — Ranged damage, but they need protection
Mages — Area damage with long cooldowns and high payoff
Priests — Healing and sustain, deciding the upper limit of long fights
Ballistae — Heavy firepower, slow to move but devastating
You issue move, attack, heal, and cast commands to every soldier, making optimal decisions in a constantly shifting battle.
10 Tutorial Levels
Start from zero and learn unit mechanics, map interaction, the command system, and scripting techniques. Even if you’re new to programming, you’ll grow into a battlefield commander step by step.
10 Challenge Levels
Every opponent’s code is pre-generated by an AI large language model. You’re not fighting fixed scripts — you’re fighting intelligent opponents that can adapt their strategies.
Is human tactical intuition stronger, or is the LLM’s algorithm one step ahead?
Real-time turn-based combat with battlefield state passed every frame
Gold system: kill an enemy and gain half of their recruitment cost
Unit speed determines action frequency — fast and slow units demand real rhythm
Skill cooldowns and area damage reward precise judgment
Grid-based map with up/down/left/right movement and attack boundary checks
Fully open Python scripting space
Customize pathfinding, attack priorities, and army composition logic
Every match is a direct reflection of your coding ability
Great for: programming enthusiasts, strategy players, AI challengers, teachers, and students.
You won’t face fixed scripts. You’ll face dynamic opponents generated by large language models.
Every challenge is unique. Every victory is earned.
Write your tactics. Watch your code bleed and win on the battlefield.
Challenge AI. Surpass AI. Become the true king of Python: Kingdom War.
Join the battlefield now. Write your war legend in Python.
Command your army with Python — script moves, attacks, heals, and spells
Six unit types — Infantry, Cavalry, Archers, Mages, Priests, and Ballistae, each with unique skills and cooldowns
Real-time turn-based battlefield — state updates every frame, speed determines action frequency
Gold economy system — killing an enemy grants half of their recruitment cost
10 tutorial levels — learn mechanics, map interaction, and scripting from scratch
10 AI LLM challenge levels — opponents pre-generated by large language models with dynamic strategies
Fully open scripting space — customize pathfinding, attack priorities, and composition logic
Grid-based map system — up/down/left/right movement and attack boundary checks
For beginners and advanced players alike — also usable as a teaching tool for teachers and students
This is not a beginner-friendly game.
In the future, programming as a job will be replaced by AI — and programming itself will become a game.
Visual Studio Code (VS Code) is strongly recommended; the game will automatically launch it.
If you don’t even want to set up an editor, this game is not for you.
Explore
Community
... no lists at all!
So what you may do right now is:
Ratings
Technical
Steam
Store
Community
No reviews yet.
Screenshots
Official
Official
Official
Official
Official
OfficialGallery
Video
宣传片
Community
... no lists at all!
So what you may do right now is:
Community
... no lists at all!
So what you may do right now is:
Gallery
... no screenshots at all!
So what you may do right now is: