A Multiplayer Trivia Mini IO Game using React

Trivia.io

Version 9.16.23 – Edit Sentences

A Multiplayer IO Game for family and Coach Play

the host must be a computer, while the client can be either a phone or a pc

The Game

The Game is all about answering. The game includes normal questions that i gathered with Chat-GPT, heres the game flow:

  • The Host Ask a Question
  • The Client Give an Answer
  • The Host reveals all Answers
  • The Client pick the best Answer
  • The Host reveals how was the pickiest Answer
  • The Host Send Coins that calculates in this formula: a
    1. Each Answer get a score, that represent the number of the clients who picked it.
    2. Each score is multiplied by 100
    3. Then The host Adds the score to the Player Coins stat.
    4. Then The host send it to the player.

Dependencies:

  1. React.js
  2. Peer.js
  3. Typescript

Credits:

loading gifs – https://loading.io/

GitHub

View Github