From 8b1fdb056156fae0e0c939f39b8c01747f4f7319 Mon Sep 17 00:00:00 2001
From: Subliminal Guy <subliminal_kid@posteo.de>
Date: Tue, 11 Mar 2025 14:42:53 +0100
Subject: [PATCH] add plyerScoreElement

---
 game/index.html | 2 +-
 game/index.js   | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/game/index.html b/game/index.html
index 25e0753..defe8f8 100644
--- a/game/index.html
+++ b/game/index.html
@@ -42,5 +42,5 @@
     </main>
     
 </body>
-<script src="./index.js"></script>
+<script src="index.js"></script>
 </html>
\ No newline at end of file
diff --git a/game/index.js b/game/index.js
index 24348cb..b058fab 100644
--- a/game/index.js
+++ b/game/index.js
@@ -2,6 +2,9 @@ const options = ["Stein", "Papier", "Schere"];
 let playerScore = 0;
 let computerScore = 0;
 
+
+const playerScoreElement = document.getElementById("player-score")
+
 function getRandomComputerResult(){
     const number = Math.floor(Math.random()*options.length);
     return options[number];
@@ -28,3 +31,5 @@ function getRoundResults(playerChoice){
         return `Computer hat gewonnen! ${computerChoice} schlaegt ${playerChoice}`;
     }
 }
+
+console.log(playerScoreElement)
-- 
GitLab