emile-mafia

1.0.6 • Public • Published

MAFIA

The Game

A game where a random minority of people are selected to try and pit the remaining civilians against one another. With a minimum of 5 players, after running this programme and assigning the roles, take it in turns to try and figure out who the imposters are and vote them out.

After someone's been voted out, they reveal their role.

If the number of mafia's equal the civilian's they win the game. If the civilian's find all the mafia they win.

How the package works

To download the package run: npm install emile-mafia Require it in an empty <filename>.js file with the code: const mafia = require('emile-mafia') Run the file with: node <filename>.js to load the package.

The person who's laptop is in use will be directed to choose how many players there are.

  • Immediately after entering a number it'll reveal their role.
  • They will then be prompted to indicate if they're ready to pass the terminal to the next player.
  • Upon receiving a Y or y input the terminal will be cleared and after 4 seconds the next secret role will be revealed.
  • This process repeats until all participants are assigned a role.
  • The last player will see their role and then the screen will automatically clear.

HAPPY HUNTING

Readme

Keywords

none

Package Sidebar

Install

npm i emile-mafia

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

5.06 kB

Total Files

4

Last publish

Collaborators

  • emilesherrott