From 6066e1204e10a6c8c3d2a2f661fc62f7ae693b9e Mon Sep 17 00:00:00 2001
From: "Sophia.Bernert" <sophia.bernert@rbb-online.de>
Date: Tue, 11 Mar 2025 15:17:06 +0100
Subject: [PATCH] add Message Elements

---
 game/index.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/game/index.js b/game/index.js
index 29a9a4f..d924916 100644
--- a/game/index.js
+++ b/game/index.js
@@ -13,6 +13,9 @@ buttonStein.addEventListener("click", () => showResults("Stein"));
 buttonPapier.addEventListener("click", () => showResults("Papier"));
 buttonSchere.addEventListener("click", () =>  showResults("Schere"));
 
+const winnerMsgElement = document.getElementById("winner-msg");
+const optionsContainer = document.getElementById("options-container");
+const resetGameBtn = document.getElementById("reset-game-btn");
 
 function getRandomComputerResult(){
     const number = Math.floor(Math.random()*options.length);
@@ -43,7 +46,6 @@ function getRoundResults(playerChoice){
 }
 
 function showResults(playerChoice) {
-    console.log("click")
     roundResultsMessage.innerText = getRoundResults(playerChoice)
     playerScoreElement.innerText = playerScore;
     computerScoreElement.innerText = computerScore;
-- 
GitLab