Modify your chat app to instead play a game of rock-paper-scissors. You will need to modify both client and server code.
Here is the console output and input for each of 3 clients:
What is your name? Mark
Successfully connected to server
(R)ock, (P)aper or (S)cissors? R
You chose rock
Waiting for response
Fred chose paper - You Lose :(
(R)ock, (P)aper or (S)cissors?
What is your name? Fred
Successfully connected to server
(R)ock, (P)aper or (S)cissors? P
You chose paper
Waiting for response
Mark chose rock - You Win :)
(R)ock, (P)aper or (S)cissors? S
You chose scissors
Waiting for response
Abe chose scissors - Draw
(R)ock, (P)aper or (S)cissors?
What is your name? Abe
Successfully connected to server
(R)ock, (P)aper or (S)cissors? S
You chose scissors
Waiting for response
Fred chose scissors - Draw
(R)ock, (P)aper or (S)cissors?
Have the server store a record of each game in a Google Firebase database