Skip to content

diego0020/wave-sync

Repository files navigation

wave-sync

An online version of wave length.

Built using angular and firebase

https://wavesync-6ac09.web.app/

Game structure

The game plays consists of several rounds where teams take turn to guess a position of the needle in the meter.

Rounds

Each round consists of 4 phases

  1. Pending: The round is about to start

  2. Setup: The gauge is set at a random position, which is revealed to the psychiv. The psychic also can select between two cards which represent the edges of the meter. Finally the psychic gives a clue.

  3. The rest of the team must reach an agreement of the position of the needle given the clue.

  4. The opposing team may make a counter guess, and say if the true value is at the left or at the right of the guess.

  5. The true position is revealed and teams score points.

Data Structure

{
    "games": {
        "$id" : {
            "teamA" : ["$players"],
            "teamB" : ["$players"],
            "scoreA" : 9,
            "scoreB" : 12,
            "rounds": ["$rounds"] 
        }
    },
    "rounds" : {
        "$id" : {
            "phase" : 1,
            "guessingTeam" : "a",
            "teller" : "$player",
            "clue" : "lion",
            "extremes" : {"start": "easy to kill", "end": "hard to kill", "startColor": "blue", "endColor": "red"}
        }
    },
    "guesses": {
        "$roundId": {
            "guess" : 30,
            "counterGuess" : "left"
        }
    },
    "roundsPrivate" : {
        "$id" : {
            "teller" : "dsg",
            "truePosition" : 44,
        }
    },
    "finalGuesses" : {
        "$roundId" : {
            "timestamp" : 1400000,
            "user": "$userId",
            "value": 30
        }
    },
    "users" : {
        "$id": {
            "displayName" : "displayName",
            "lastSeen" : 140000000
        }
    },
    "displayNames": {
        "$displayName": {
            "id": "$playerId"
        }
    }
}

Pending

  • user names
  • online status
  • end round timer
  • teams
  • phase 3

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published