diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..496ee2c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store \ No newline at end of file diff --git a/game.html b/game.html index ec2749d..a4a9d21 100644 --- a/game.html +++ b/game.html @@ -11,8 +11,6 @@ - -
@@ -63,5 +61,11 @@ + + \ No newline at end of file diff --git a/game.js b/game.js index 0b0091e..b2734af 100644 --- a/game.js +++ b/game.js @@ -1,3 +1,5 @@ +import { CountUp } from "./node_modules/countup.js/dist/countUp.min.js"; + var cpuList; var currentCpu; var nextCpu; @@ -18,11 +20,11 @@ function getRandomCpu() { } } -function btnLowerClick() { +export function btnLowerClick() { currentCpu.score < nextCpu.score ? showResult(true) : showResult(false); } -function btnHigherClick() { +export function btnHigherClick() { currentCpu.score > nextCpu.score ? showResult(true) : showResult(false); }