This is the simulation I wrote for my CS thesis in Union College. It will generate 4312 (changeable) files which contain data for battlegraphic.exe to demonstrate battle procedure under different settings.
Abstract: In 1402, at the north of the city of Ankara, Turkey, a battle between Ottoman Empire and Tamerlane Empire decided the fate of Europe and Asia. Although historians largely agree on the general battle procedure, the details are still open to dispute.
Several factors may have contributed to the Ottoman defeat, such as the overwhelming size of Tamerlane’s army, poisoned water, the tactical formations of the military units, and betrayal by the Tartar cavalry in the Ottoman left wing.
The approach is divided into two stages: the simulation stage, which provides data to analyze the complex interactions of autonomous agents, and the analysis stage, which uses data mining to examine the battle outcomes. The simulation is built on a ﬁnite state machine to evaluate the current situation of each agent and then choose the most appropriate action. To achieve historical accuracy, the simulation takes into account the topography of the battleﬁeld, line-of-sight issues, period-speciﬁc combat tactics, and the armor and weapons used by the various military units at that time. The analysis stage uses WEKAs Attribute Selection Classiﬁer to evaluate the association strength between the battle outcome and the various factors that historians consider crucial to the outcome.