CodeWar Kingdom artwork$8.9950%2 user reviews

CodeWar Kingdom

Say goodbye to micromanagement and embrace strategic programming! The core joy of the game lies in writing unique behavior scripts for your six unit types. Will you forge an invincible army of iron and blood, or design cunning tactical traps?

Screenshots

From the Steam store

CodeWar Kingdom – Command Your Army with Scripts, Dominate the Algorithmic Battlefield!

Welcome to CodeWar Kingdom, where there is no traditional point-and-click control—only lines of code that decide the fate of battles. You are not just a player controlling soldiers; you are the commander who strategizes and programs the scripts. On this automated battlefield, the Lua scripts you write in advance become the sole law governing every unit under your command. Will you forge an invincible army of iron and blood, or design cunning tactical traps? Victory is determined by your wisdom long before the battle begins.

🎮 Core Gameplay: Program Your Commander Scripts

Say goodbye to micromanagement and embrace strategic programming! The core joy of the game lies in writing unique behavior scripts for your six unit types: Infantry, Cavalry, Archer, Mage, Pastor, and Bolt Thrower.

Build Logic from Scratch: Use our rich set of APIs to command units to move, search for enemies, attack, and cast skills. For example, program your Archers to "maintain distance and prioritize the weakest enemy," or script your Pastor to weave through the battlefield, healing the most endangered ally.

Fully Automated Epic Battles: Once your scripts are ready, deploy them into battle! As a spectator, you'll watch your "Code Army" execute your will with precision, engaging in intense and unpredictable auto-battles against enemy AI or other players' scripts. Every victory is a perfect validation of your programming logic.

⚔️ Six Unique Unit Types, Endless Strategic Depth

Each unit type is not just a set of stats, but a unique programming challenge. Understanding and leveraging their traits is key to victory:

Infantry / Cavalry: The backbone of your army and your shock troops. Script them to hold formations, intercept enemies, or charge headlong into the fray.

Archer / Mage: The core of your ranged firepower. Their scripts require intelligent target selection, distance calculation, and focus-firing on high-threat targets. The Mage's powerful area skill demands precise timing and positioning in your code.

Pastor: The lifeline of your team. Writing efficient healing priority algorithms and movement scripts is the art of keeping your front line intact.

Bolt Thrower: A strategic area-denial unit. Its script revolves around prediction and zone control—one perfectly placed shot can turn the tide of battle.

🚀 Easy to Learn, Deep to Master

Programming for Everyone: We use the simple and easy-to-learn Lua language, accompanied by complete Chinese & English API documentation and examples. Even if you're new to programming, you can quickly write your first script to move a soldier forward and attack.

From "Hello World" to "Elite Script": Start by controlling a single unit, then gradually learn to orchestrate multi-unit synergies, and ultimately create a highly intelligent, automated legion capable of handling complex battlefield situations. Your progress is clear and tangible.

Powerful Built-in Debugging: Use the Log() function to output variables and analyze your scripts decision-making in real-time, allowing for rapid iteration and optimization of your scripts.

🌐 Prove You're the True "Code Commander" in the Arena

Seamless Steam-Integrated Online Platform: Your battle scripts are automatically uploaded to our global servers after each match.

Challenge Players Worldwide: Throw your best scripts into the ranked ladder and compete against commanders across the globe. Your Scripts will represent you, accepting challenges 24/7 from around the world.

Learn and Evolve: Studying the public scripts of top-ranking players is the best way to learn advanced strategies and optimization techniques. Every defeat provides valuable data to refine your algorithms.

🛠️ Made for Geeks and Strategists

This game is tailor-made for you if:

You love programming and enjoy the thrill of solving problems with logic.

You're a devoted fan of strategy games, reveling in deep planning and long-term decision-making.

You're fascinated by artificial intelligence and automation, wanting to see how simple rules can give rise to complex behaviors.

You crave a unique, creative, and intellectually challenging gaming experience.

Games like CodeWar Kingdom

See all
PYTHON:KINGDOM WARS

PYTHON:KINGDOM WARS

Command six unit types with Python and fight real-time wars against AI large language models. Write code. Build tactics.

100% of 1 Steam reviews are positive$1.99
Scripted Land

Scripted Land

Code your territory's AI to make it prosper! Manage production and processing, strengthen your adventurers and let them explore!

100% of 4 Steam reviews are positive$9.99
Screeps: World

Screeps: World

Write JavaScript that mines, builds and fights for your colony in a shared world, even while you sleep.

86% of 1,946 Steam reviews are positivePlayers online now: 59$6.79
Screeps: Arena

Screeps: Arena

You write JavaScript, your units follow it, and the arena decides whose logic was better.

82% of 107 Steam reviews are positivePlayers online now: 10$13.39
Echoes of the Architects

Echoes of the Architects

Design the perfect units, program their behavior, and unleash them in fully automated battles.

80% of 46 Steam reviews are positive$9.99
Compile & Defend

Compile & Defend

A tower defense game where you don't click to shoot — you write code your towers run every tick, in Python, JavaScript, C++, C#, Rust, Zig or Lua.

50% of 2 Steam reviews are positive$4.99
Code: Terraform

Code: Terraform

Write scripts that run rovers, power grids and drone fleets on a frozen planet, and watch your colony grow as the world starts answering back.

84% of 381 Steam reviews are positivePlayers online now: 79$14.99
Castle Kingdom Wars

Castle Kingdom Wars

Make your own strategy to beat your enemies. Characters have different skills so you can defeat your enemy with different tactics.

81% of 16 Steam reviews are positive$0.69
异常 | Exception

异常 | Exception

You play an operator in a virtual world, writing simple AI for robot units and debugging your way to victory.

97% of 1,520 Steam reviews are positive$3.99
Warlords Battle Simulator

Warlords Battle Simulator

Test your mettle as a commander in a Tactical Roguelike Auto Battler where positioning and unit combinations are key!

67% of 55 Steam reviews are positive$9.99
Tactic Code - 战术代码

Tactic Code - 战术代码

This is an indie game that combines "visual programming" with "battle." If you love programming games, don't miss it.

88% of 8 Steam reviews are positive$2.99
Whispers of the Architects

Whispers of the Architects

Echoes of the Architects is a fast-paced real-time strategy game where creativity drives victory.

91% of 11 Steam reviews are positiveFree