Giter VIP home page Giter VIP logo

spyfall's Introduction

Spyfall

What is it?

Spyfall is a party game where every player besides 1, the Spy, is given the same location.

The game proceeds with players asking each other questions in whatever order they like, trying to figure out who knows the location and who is the Spy.

The Spy is trying to blend in with the rest of the players while trying to determine what location all the other players are in.

The game ends once the players unanimously vote on who they think is the Spy, when the Spy wants to reveal him/her self and guess the location, or when the timer expires (TODO).

This implementation is written with React on the frontend, and Socket.io on the backend. It is a single page application that relies on rendering different components over the root component depending on which part of the application the user is on.

Regardless of refreshes while users are using the app, the clients will be kept up to date with the newest data via the server socket connection.

Usage

Use the code in this repository to host the game on a computer and have others connect to it.

Future: Hosted version that can be played by visiting a URL.

Server

npm install
node index.js

inside of the backend folder to start up the server

Client

npm install
npm start

inside of the frontend folder to start up the client

In game.js, must change the socket connection IP to the IP of the local machine that is running the server

Users will go to http://\<host_ip_address\>:3000 to play the game

Customization

The list of locations is in the backend folder labled locations.txt.

Simply add or remove any locations and the game will process it the same

spyfall's People

Contributors

quuu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.