From 3171175dde5d0ffb8e5e13ad953e0a0876ab77cc Mon Sep 17 00:00:00 2001 From: Florian Schmid Date: Wed, 12 Apr 2023 13:03:27 +0200 Subject: [PATCH] bug fix --- game.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game.js b/game.js index 7bc35be..0666f70 100644 --- a/game.js +++ b/game.js @@ -21,11 +21,11 @@ function getRandomCpu() { } export function btnLowerClick() { - currentCpu.score < nextCpu.score ? showResult(true) : showResult(false); + nextCpu.score < currentCpu.score ? showResult(true) : showResult(false); } export function btnHigherClick() { - currentCpu.score > nextCpu.score ? showResult(true) : showResult(false); + nextCpu.score > currentCpu.score ? showResult(true) : showResult(false); } function showResult(isCorrect) { @@ -49,7 +49,7 @@ async function countUp() { document.getElementById("btnLower").setAttribute("disabled", ""); const options = { - startVal: 7000, + startVal: 0, separator: '.', decimal: ',', };