GithubHelp home page GithubHelp logo

jamalex / the-resistance Goto Github PK

View Code? Open in Web Editor NEW
15.0 8.0 3.0 245 KB

The game of social deduction, designed by Don Eskridge. (This is an unofficial online version.)

Shell 0.24% CoffeeScript 99.76%

the-resistance's Introduction

An unofficial online (real-time, websocket-based) version of The Resistance, the awesome game of social deduction designed by Don Eskridge.

Buy the original game, and support the developers! It's an awesome party game, and the art is great! This is just a way to play with people remotely, facilitated by a server to keep track of rounds/voting and Google+ Hangouts to facilitate yelling at each other until your voice is hoarse.

Dependencies

Running

Make sure that the mongo daemon is running, e.g.:

sudo mongod

And then, from the code directory, run:

coffee server.coffee

Then go to: http://127.0.0.1:2020/

A game requires at least 5 players before it can be started.

the-resistance's People

Contributors

alandwarinasia avatar jamalex avatar sophiebits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

the-resistance's Issues

About copyright infringement

Hi! There is any copyright infringement on open sourced board game similar or like an unofficial version of the original one?

Thanks

Not working

Hi,
sorry to bother you, I'd like to set up a server, I installed dependencies as required but then server.coffee throws exceptions.
I did a search for these errors (as I am not familiar with Node.js), the main causes seem to be:

  1. newer version of Node.js dropped support for app.configure: solved deleting server.coffee:15.
  2. newer version of Node.js and Express have different usage for middleware like "cookie-parser" (server.coffee:16): solved (I think :P ) with a different call, as below.
    cookieParse = require('cookie-parser')
    app.use(cookieParse('secret stuff!'))

Solved the above errors, I still have this one:
C:\the-resistance-master\server.coffee:174
socket.rooms = io.sockets.manager.roomClients[socket.id];
^
TypeError: Cannot read property 'roomClients' of undefined
at Namespace. (C:\the-resistance-master\server.coffee:112:38)
at Namespace.emit (events.js:95:17)
at Namespace.emit (C:\the-resistance-master\node_modules\socket.io\lib\namespace.js:205:10)
at C:\the-resistance-master\node_modules\socket.io\lib\namespace.js:172:14
at process._tickCallback (node.js:419:13)

I did a search and it looks like also socket.io has had some big changes since 2012.
Can you please help? Or maybe, can you point out which older version of Node.js and Express should be used (and forced) during installation?
I really would like to set up a server and play with my friends, I am also willing to help but as I wrote I am not familiar with Node (although I am considering to follow an online course on it, maybe next month).
Thank you very much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.