https://github.com/farooqkz/msim
Simulating Mafia game with mafias, townies and fools!
https://github.com/farooqkz/msim
common-lisp commonlisp game-simulation game-simulator lisp mafia mafia-game mafia-party-game sbcl simulation simulations werewolf werewolf-game
Last synced: 4 months ago
JSON representation
Simulating Mafia game with mafias, townies and fools!
- Host: GitHub
- URL: https://github.com/farooqkz/msim
- Owner: farooqkz
- License: mit
- Created: 2021-11-12T10:26:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-12T10:26:26.000Z (over 4 years ago)
- Last Synced: 2025-10-07T04:31:21.877Z (9 months ago)
- Topics: common-lisp, commonlisp, game-simulation, game-simulator, lisp, mafia, mafia-game, mafia-party-game, sbcl, simulation, simulations, werewolf, werewolf-game
- Language: Common Lisp
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 :)