8000 GitHub - jamesbmayr/truecolors: True Colors is a multiplayer asymmetrical team card game by James Mayr
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jamesbmayr/truecolors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

True Colors

True Colors is a multiplayer asymmetrical team card game by James Mayr


 ________ 
|   /\   |
|/-/  \-\|
|\-\  /-/|
|___\/___|

Rules

Start

All players have a secret role. Most players are Good, but they won't know who is Evil. (See team distribution below.) At the beginning of each round, a color is revealed in the center. These colors will appear (in a random and unknown order): red, yellow, green, blue, white. The game has 4 rounds. Each round is divided into phases.

Phases

  1. Vote During this phase, players can see only their own cards. All players select 1 person to start the round. Once a majority agrees on a leader, that player begins the next phase, and turn order continues clockwise.
  2. Swap On your turn, look at all cards of all players. Select 1 of your own cards and swap it with 1 card of another player. You will only see cards when it is your turn.
  3. Toss All players look at their own hands and choose 1 card to discard. Other players will not see your selection.
  4. Play All players look at their own cards and choose 1 card to play. After everyone has selected, these cards will be revealed.
  5. Show If all the played cards match the round color, the Good team earns a point. Note that some cards (white 5DF1 ) are wild and can qualify for any round color. But if even 1 card does not match, then Evil earns a point!

Game End

The game ends after Good or Evil score enough points to win:

  • Good points: all rounds
  • Evil points: one round

Code

The app is powered by nodeJS, written in 100% raw javascript. It uses the following packages:

  • websocket: for real-time communication between client and server

truecolors
|
|- package.json
|
|- index.js
|
|- node_modules
|   |- websocket
|
|- node
|   |- core.js
|   |- game.js
|   |- session.js
|
|- js
|   |- game.js
|   |- home.js
|   |- main.js
|
|- css
|   |- game.css
|   |- home.css
|   |- main.css
|
|- html
|   |- _404.html
|   |- game.html
|   |- home.html
|
|- assets
	|- logo.png
	|- red.png
	|- yellow.png
	|- green.png
	|- blue.png
	|- white.png

About

True Colors is a multiplayer asymmetrical team card game by James Mayr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0