This repo simulates battles in the board game Risk between armies of equal size in order to determine how often the attacking or defending side wins based on the starting army size. There are two simulations in the repo, an object oriented set of modules and a functional module, both of which attempt to simulate the above conditions.
usage: run pete's main.py
- risk_game_simulation.py
- main file for stephen's version of the risk simulator
- main.py - the main function for pete's version of the risk simulator
- army.py - the class definition for the armies in pete's code
- data.txt - a sample output from pete's code
- plotter.py - a quick and dirty script to make the plot in the same style as original
- petes-plot.png - petes version of the plot