Calculate probabilities of battle outcomes in the game Risk for large amounts of attacking/defending armies.
Written in Pascal language for the exercise 'Risk odds calculator' for the website CodinGame https://www.codingame.com/ide/puzzle/risk-odds-calculator
Can be compiled with FreePascalCompiler (FPC) https://www.freepascal.org/
For writing this code I got inspiration from the following sources: