From 72bc3850486a487b2ab54e5cfa94e917a9c2ccbd Mon Sep 17 00:00:00 2001 From: Florian Schmid Date: Wed, 19 Apr 2023 22:06:14 +0200 Subject: [PATCH] add cpuRepo --- js/game.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/game.js b/js/game.js index da0c802..d5b1fdc 100644 --- a/js/game.js +++ b/js/game.js @@ -1,14 +1,19 @@ import { CountUp } from "https://cdnjs.cloudflare.com/ajax/libs/countup.js/2.6.0/countUp.min.js"; import { Stats } from "./statistics.js"; +import { CpuRepository } from "./cpuRepository.js" var cpuList; var currentCpu; var nextCpu; +var repo; var localStats; export async function main() { localStats = new Stats("highScore_cpu"); + + repo = new CpuRepository(); + await repo.init(); await (fetch('./js/data.json') .then((response) => response.json())