Skip to content
/ msim Public

Simulating Mafia game with mafias, townies and fools!

License

Notifications You must be signed in to change notification settings

farooqkz/msim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

msim

Simulates the mafia party game supporting Multi-Threading(SBCL only)

To use this thing:

  • Install SBCL.
  • Run SBCL and load the program like this:

(load "msim-far.lisp")

  • Now you can use sim or sim-mt functions to start the simulation:

sim rounds citizens

sim-mt nthreads citizens nrounds

An example with sim-mt which supports multithreading:

sim-mt 2 '(m r r r) 10

Or to add fool:

sim-mt 2 '(m m f r r r r r) 10

  • The result is a list containing number of wins for fool, mafia and townies.
  • Have fun and good luck :)