Live Web – Chat Assignment

Get up and running with Node.js on Digital Ocean and the example Chat Application. Try to extend it a bit, make it better, more fun.

I was able to get the Chat Application up and running on my server.

As for remixing it, I’m imagining a game that challenges two people submit original responses to the same question.  For example, two users submit different words for “drinks that are carbonated beverages”, “shades of blue”, or “names for submarine sandwiches”. Two people gain a point if they submit different words. They lose a point if they submit the same words.

I have a sketch of an online interface.

I also have lots of questions in my code, which is live here – BUT by no means changed from the original code yet.

IMG_5814.jpg


Mainly I wonder how to keep track of two socket.io client IDs, in order to compare their submissions from their respective input fields. I know you can get ID numbers, but how would you put them into an array to compare their answers?

I also plan to use the Javascript search() method to compare if the strings within the user’s submitted answers are the same or different.

I will work on this to complete the assignment.