Skip to content
forked from AlecM33/Werewolf

An online, lobby-based multiplayer version of the social deception game Werewolf using Javascript and Websocket. Still in active development.

Notifications You must be signed in to change notification settings

vpanta/Werewolf

 
 

Repository files navigation

Werewolf

This app is still in active development. The latest deployment can be found here

A Werewolf utility that provides the tools to run games smoothly in the absence of a deck, or in any context in which traditional moderation is hindered.

This is a Javascript application running on a node express server. I am using the socket.io package as a wrapper for Javascript Websocket. This was built from scratch as a learning project; I do not claim it as a shining example of socket programming or web app design in general. I welcome collaboration and suggestions for improvements.

All pixel art is my own (for better or for worse).

This is meant to facilitate the game in a face-to-face social setting and provide utility/convenience - not control all aspects of the game flow. The app allows players to create or join a game lobby where state is synchronized. The creator of the game can build a deck from either the standard set of provided cards, or from any number of custom cards the user creates. Once the game begins, this deck will be randomly dealt to all participants.

Players will see their card (which can be flipped up and down), an optional timer, and a button to say that they have been killed off. If a player presses the button, they will be removed from the game, and their role revealed to other players. The game will continue until the end of the game is detected, or the timer expires.

To learn more about this type of game, see the Wikipedia entry on the game's ancestor, Mafia.


home create lobby

game killed hunter



Run Locally

Run npm install from the root directory.

Run node server.js from the root directory, navigate to localhost:5000

Testing/Debugging

Use npm run test to run unit tests using Jasmine (test coverage is barebones and is currently being expanded)

To turn on logging at the debug level, add the debug argument like so:

node server.js -- debug

Contributing

Contributions of any kind are welcome. Simply open an issue or pull request and I can respond accordingly.

About

An online, lobby-based multiplayer version of the social deception game Werewolf using Javascript and Websocket. Still in active development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.8%
  • CSS 8.9%
  • HTML 4.3%