Hi all
I wrote a little program using Matlab.Nothing too fancy, it is basically an extention of the "analyze attack" tool in the game. I'm not a programmer so the code must be terrible but it works for me, so i might as well share it.
the program has 3 features:
the rounding mode is weighted random, maybe i'll add the straight round option later
- Army losses analysis: gives you the spectrum of kills. For example, if you attack a territory defended by 10 armies, the "analyze attack" tool in the game will tell you that you will lose about 7 armies, while this program will tell you that you have 9% chance of losing 6 armies, 82% chance of losing 7, and 9 % chance of losing 8.
- Taking Territory Analysis: basicaly the same graph you have in the "analyze attack" tool ingame, exept i use the maths formulas to get the graph, not simulations that gives you an average graph, so the graph in the program should be a bit more precise than in the "analyze attack" tool in the game. However, if you put more than 100 defending armies, the program will be extemely slow to get you the graph.
- Custom scenario analysis: allows you to analyze some basic scenarios and gives you the expected payoff of the scenario.
From what i read on the internet, if the PC doesn't have matlab installed, the program won't run. In order to run it you have to install Matlab Compiler Runtime (MCR). I didn't try the program on another PC, so i don't know if it will work. I have Windows 7 x64, so i don't know if it will work on other version of windows.
link to the program (last version) (242ko):
https://www.dropbox.com/s/zs3m1hm3cx291zd/WarlightAnalysis12.exetest it without MCR and see if it works (doubt it)
code in docx:
https://www.dropbox.com/s/39sju8bwc161inq/CodeWarlightAnalysis12.docxsource code:
https://www.dropbox.com/sh/u2to8nnywafolfc/0MEPlwgyWmlink to the MCR (174Mo):
https://www.dropbox.com/s/srizpggkjyd64tn/MCRInstaller.exeI know it sound stupid to install the 174Mo MCR to run a 242ko program but i don't have other option available. I am trying to find a way to make a real stand alone .exe
Edited 3/14/2014 02:11:31