function setupBuzzerOptions() { let buzzerOptions = ["Kirbeep","MPYosh","MPDog","MPCat","Wow","Ooh","MarioBoing","TheNumberEight"]; buzzerOptions.forEach((buzzerName) => { $("#buzzerOptions").append(""); }); return buzzerOptions; } function userListsToClient(playerList, chaserList) { $("#playerList").html(""); $("#chaserList").html(""); playerList.forEach((playerName) => { $("#playerList").append("
  • "+playerName+"
  • "); }); chaserList.forEach((chaserName) => { $("#chaserList").append("
  • "+chaserName+"
  • "); }); } function gameStateToClient(currentTeam, currentScore) { $("#currentTeam").html(currentTeam); $("#currentScore").html(currentScore); } function buzzListToClient(buzzList, buzzerSound) { //play sound for first buzz in if ($("#buzzList").html() == "") { buzzerSound.play(); } $("#buzzList").html(buzzList.join()); }