Skip to content
Timothy Boose edited this page Mar 7, 2024 · 4 revisions

RiskOddsCalc wiki

Welcome to the riskoddscalc wiki! It's not great, sorry.

This is a quick overview of what everything here does. If you'd just like to use the final product, visit it here.

The webpage is pretty simple to use, just enter the number of attackers and the number of defenders. Do note that you need to use the number of attackers who can actually attack, not the total number in the attacking space. Don't count the one that you leave behind, only count the number who can actually fight in the battle.

The webpage should display the probability of each side winning the battle, as well as the expected number of troops each will use. If it bugs out and doesn't display this, just enter the values into the form again and try again. I can't be bothered to fix it. It's good enough.

I could describe the dumpster fire of code that makes this work, but I'll save myself the embarrassment and hope nobody looks at it. It's the dumbest possible solution; I've just used a massive lookup table generated by a python script (the fortran script is included because I couldn't be bothered to get rid of it. it does nothing in the current version).

Clone this wiki locally