Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including wolves with all npm packages installed. Try it out:

var wolves = require("wolves")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

wolves v0.0.6

JavaScript port of lykoss/lykos, a Wolves party game IRC bot

Wolves

IRC based online Wolves (a Mafia theme) game

Progress Build Status NPM version


THIS PROJECT IS UNDER HEAVY DEVELOPMENT


Installation

Simply install using NPM.

npm install -g wolves

Ubuntu

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
npm install -g wolves

Mac OS X

brew install node
npm install -g wolves

Windows

I really don't know.

Configuration

You should create the IRC settings file at config/irc.yml

channel: "#wolfgamechannel"
auth:
  username: yourusername
  password: password

connection:
  host: irc.freenode.net
  port: 6667

owners: [user1, user2]
admins: [user1, user2]

Run

Then, you can connect to server and start the game:

wolves start

You can change connection file:

wolves start --config=config/another-config.yml

The Game

Inspired from lykoss/lykos, a Wolves party game based on IRC Protocol,

From Wikipedia:

Mafia (Russian: Ма́фия, also known as Wolves) is a party game created in the USSR by Dimitry Davidoff in 1986,[3] modelling a conflict between an informed minority (the mafia) and an uninformed majority (the innocents). At the start of the game each player is secretly assigned a role affiliated with one of these teams. The game has two alternating phases: "night", during which the mafia may covertly "murder" an innocent, and "day", in which surviving players debate the identities of the mafiosi and vote to eliminate a suspect. Play continues until all of the mafia has been eliminated, or until the mafia outnumbers the innocents.

License

MIT: http://f.mit-license.org

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free