I’m working on a chat room system where saying a certain letter of the alphabet will deduct you 200 points. When users connect they are assigned one of two letters: either “i” or “e.” A leaderboard will display who has the most points. You have a secret phrase you can only tell to people who have the same letter as you, though no one else is allowed to hear it. If you tell a person who has the same letter as you your secret, you both get 100 points. If you tell a person who has a different letter, they get 300 points and you lose 100 points. Reaching 0 points resets you.
Right now, letter assignments, checking if the letter is in your message, points, and usernames are all being stored server side, and your health is constantly being console.logged.