From 9f192cef35e09119641744b893f0ab512b8fc567 Mon Sep 17 00:00:00 2001 From: blakewu137 Date: Tue, 13 Jan 2026 03:50:52 +0000 Subject: [PATCH 1/5] Changed background color --- style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.css b/style.css index fce24b5..2abad9f 100644 --- a/style.css +++ b/style.css @@ -39,7 +39,7 @@ body { display: grid; grid-template-rows: repeat(30, 1fr); grid-template-columns: repeat(30, 1fr); - background-color: #212837; + background-color: #166740; } .play-board .food { From 632a3a8917b5c33052fd4d1e514fef9e9db5927f Mon Sep 17 00:00:00 2001 From: blakewu137 Date: Tue, 13 Jan 2026 17:51:18 +0000 Subject: [PATCH 2/5] Added new speeds and changed original speeds. Also added instructions. --- index.html | 11 +++++++++++ script.js | 16 +++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 2216810..cff0686 100644 --- a/index.html +++ b/index.html @@ -34,6 +34,17 @@

Select Difficulty

+ + + + + + diff --git a/script.js b/script.js index f54a3a4..7a8ef09 100644 --- a/script.js +++ b/script.js @@ -67,16 +67,22 @@ const restartGame = () => { const startGame = (difficulty) => { switch (difficulty) { case 'easy': - gameSpeed = 200; // Slower speed for easy + gameSpeed = 125; // Slower speed for easy break; case 'medium': - gameSpeed = 125; // Medium speed + gameSpeed = 100; // Medium speed break; case 'hard': gameSpeed = 75; // Faster speed for hard break; + case 'insane': + gameSpeed = 30; // Faster speed for hard + break; + case 'random': + gameSpeed = Math.floor(Math.random()*200); + break; } - + // Hide the difficulty modal document.getElementById("difficultyModal").style.display = "none"; @@ -87,6 +93,10 @@ const startGame = (difficulty) => { gameInterval = setInterval(initGame, gameSpeed); } +const next = (next) => { + document.getElementById("next").style.display = "none"; + } + // Main function to update the game state const initGame = () => { // Save the current tail position From 0f4057e925cad290056f740455b52b20091c3fbb Mon Sep 17 00:00:00 2001 From: blakewu137 Date: Thu, 15 Jan 2026 00:09:52 +0000 Subject: [PATCH 3/5] Added background and changed instructions. --- index.html | 2 +- style.css | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index cff0686..93adf22 100644 --- a/index.html +++ b/index.html @@ -42,7 +42,7 @@

Select Difficulty