Skip to content
Snippets Groups Projects
Commit 6066e120 authored by Sophia Bernert's avatar Sophia Bernert
Browse files

add Message Elements

parent 8bc199e7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment