diff --git a/game/index.js b/game/index.js index b4badeb86ba07439b90d2b25e945412ad4008f18..fa6eec53dda12cda8359cd28804452031af34f56 100644 --- a/game/index.js +++ b/game/index.js @@ -9,6 +9,10 @@ const roundResultsMessage = document.getElementById("results-msg") const buttonStein = document.getElementById("rock-btn") const buttonPapier = document.getElementById("paper-btn") const buttonSchere = document.getElementById("scissors-btn") +buttonStein.addEventListener("click", showResults("Stein")); +buttonPapier.addEventListener("click", showResults("Papier")); +buttonSchere.addEventListener("click", showResults("Schere")); + function getRandomComputerResult(){ const number = Math.floor(Math.random()*options.length);