This-Game / monte-carlo-werewolf-simulation

How likely are the Villagers to defeat the Werewolves, in different configurations of players roles (more / fewer wolves, the Seer, the Healer etc.)
MIT License
41 stars 6 forks source link

Monte Carlo Werewolf Simulation

Simulate the game of Werewolf with different roles and player ratios.

To run the simulation:

ruby simulate.rb

To start hacking on this, by look at simulate.rb and play with the simulations at the bottom of the file. To log the progression of an individual game, pass a second arg fromt he command line, e.g.

ruby simulate.rb debug

I recommend taking the runs down to 1 when checking individual game runs for correctness. Code layout borrowed from flazz's Uno sim.