This project implements a multiplayer online game of questions and answers, using webdockets for real-time communication.
Module | Purpose |
---|---|
Express |
Create a web server to serve statically the game pages |
SocketIO |
Synchronizes events between master and players |
- Round control
- Score control
- Timeout to answer
- Sounds for actions
- Clone the project:
git clone https://github.com/felipeleite11/super-quiz.git
- Execute instalation of dependencies:
npm install
ouyarn
- Execute application:
npm start
ouyarn start
- Open
http://localhost:3000/master
in your browser. - Open
http://localhost:3000/test
in another browser window. This will simulate 4 simultaneous players. - Set a different name for each player.
- The list of players should be updated automatically in on all open screens.
- In the master's window, click the hand pointing to the right, this will get the next question.
- Answer questions on player's screen before the timeout. You will be notified if the question is correct ✅ or incorrect ❌.
- Your score will be automatically synchronized across all open screens.
- The master releases the next question for all players.
- The timeout starts for all players (each question can have a different timeout)
- Players who answer the question first, score more.
- At the end of a round, everyone is notified of the winner.
- The master can move on to the next round and continue the game.