bug fix
This commit is contained in:
parent
78fb7fafb8
commit
3171175dde
6
game.js
6
game.js
@ -21,11 +21,11 @@ function getRandomCpu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function btnLowerClick() {
|
export function btnLowerClick() {
|
||||||
currentCpu.score < nextCpu.score ? showResult(true) : showResult(false);
|
nextCpu.score < currentCpu.score ? showResult(true) : showResult(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function btnHigherClick() {
|
export function btnHigherClick() {
|
||||||
currentCpu.score > nextCpu.score ? showResult(true) : showResult(false);
|
nextCpu.score > currentCpu.score ? showResult(true) : showResult(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showResult(isCorrect) {
|
function showResult(isCorrect) {
|
||||||
@ -49,7 +49,7 @@ async function countUp() {
|
|||||||
document.getElementById("btnLower").setAttribute("disabled", "");
|
document.getElementById("btnLower").setAttribute("disabled", "");
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
startVal: 7000,
|
startVal: 0,
|
||||||
separator: '.',
|
separator: '.',
|
||||||
decimal: ',',
|
decimal: ',',
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user