Giter VIP home page Giter VIP logo

coup-online's Introduction

Coup Online

This project is an online port of the card game Coup. It is currently hosted at here.

Perfect to play with friends during quarantine c:

About the project

This project consists of two parts

  1. The React.js client
  2. The Node.js/Express.js backend server

Technologies: React.js, Node.js, Express.js, Socket.io

Deployment: Heroku

Features

Party Creation

Seamlessly create a party with a 6-digit code. Copy the code using the 'copy to clipboard' button and send it to those whom you wish to play with.

Once a player joins, they will appear as 'Not Ready' on the list of players. The joining player must hit the 'Ready' button to notify the game creator that they are ready to start the game.

If a player has joined the room, but disconnects (ex. closing the tab), the player will also be removed from the list of party members and will have to rejoin.

The game creator can click/touch and drag each party member around in the list to form the desired turn order.

Individualized Connections

The backend architecture is designed to send individualized information to each client. This prevents excess information from being shared with clients that do not require it.

Client Voting system

On events such as a challenge, block, or a challenge of a block, the server will open up voting where each client will cast their vote. Voters are chosen based on the source, target, and type of event. Voting finishes when either all voters have passed, or immediately when a voter chooses to challenge or block.

Game Event Log

In the client, there is an event log showing all players the last 4 actions to help them keep track of the game. This log also shows when a player disconnects.

Garbage Collection

A script is run to destroy game instances that have 0 connections.

Chicken Drumstick Emoji

Courtesy of https://twemoji.twitter.com/

License

MIT

coup-online's People

Contributors

cheneth avatar thomaskou avatar pradeepvairamani avatar akinyele-shopify avatar blendin avatar brystephor avatar sjwarner avatar dependabot[bot] 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.