Urgent.News

What's breaking now, across thousands of outlets.

Tech

A Storm Didn't Decide This Battle — A Sergeant Did

Building a deterministic tactics engine in Python, inspired by Kingdom. Same seed. Same orders. Same pincer maneuver through a mountain pass. Two different outcomes: Baseline (no luck): WEI wins by attrition (Qin ground down to 20%) With luck enabled: QIN wins by decapitation What changed? On turn 4, Wei's guard formation was at 57% strength and Qin's cavalry at 54% — both inside a "close call"…

In a deterministic tactics engine built by a Mozambican developer, two identical scenarios produced different results based on a single chance event. With no luck factor, Wei defeated Qin by attrition. However, when luck was enabled, Qin prevailed through decapitation. The turning point occurred on turn 4, when both Wei and Qin faced close calls in a mountain pass.

A random event, Sudden Morale, awarded Wei's guard formation a 10% attack boost, pushing it to 24%, just shy of the 25% rout threshold. Without this advantage, Wei would have held at ~27%. The exposed enemy general was captured, proving the battle could be decided by a mere technicality. This testimony demonstrates that while strategy and formation matter, luck also plays a significant role in determining the outcome of a tactical battle.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Saturday 22 August →