summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohit T P <tprohit9@gmail.com>2024-09-16 04:46:34 +0530
committerRohit T P <tprohit9@gmail.com>2024-09-16 04:46:34 +0530
commit0096e83b40ec0d23e2ef58b39ed9477eeba077f3 (patch)
tree3836d5b3e699f1170680778e215c1e76831f7b30
parent437339b37a186567124e9e8d5c1faacb89425f13 (diff)
more hardness
-rw-r--r--js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/index.js b/js/index.js
index b5ad00e..cec210b 100644
--- a/js/index.js
+++ b/js/index.js
@@ -7,7 +7,7 @@ let game, renderer;
function setUpGame(){
const hardnessValue = parseFloat(hardness.value);
- const grid = hardnessValue < 0.5 ? 10 : 15;
+ const grid = hardnessValue < 0.5 ? 10 : hardnessValue > 0.8 ? 20 : 15;
game = new MazeGame(grid, grid, hardnessValue);
renderer = new MazeRenderer(game, 'gameCanvas');
game.initializeGame();