fix issue

This commit is contained in:
Dominic DiTaranto 2025-09-07 23:56:27 -04:00
parent 6dd0950bae
commit d91c92370f

View file

@ -8,6 +8,18 @@ class Game {
this.points = 0;
this.totalMoves = 0;
this.levelMoves = {};
this.traditional = false;
}
toggleTraditional() {
if (this.traditional) {
this.traditional = false;
} else {
this.traditional = true;
}
this.mapInstance.traditional = this.traditional;
this.mapInstance.display();
}
initializeLevel() {
@ -50,7 +62,7 @@ class Map {
this.totalWin = g.level + 1 == levels.length;
this.finalPointsGiven = false;
this.traditional = false;
this.traditional = g.traditional;
}
generateMapArray() {