Skip to content

[Bug]: Snake difficulty changes score but not actual game speed #1537

Description

@mayurigade-hub

What is happening?
In the Snake game, selecting Easy, Medium, or Hard changes the score multiplier, but the snake movement speed does not really change.

Why is this a problem?
Users expect Hard mode to move faster and Easy mode to move slower. Right now, difficulty mostly affects points, so the gameplay feels almost the same.

How to fix it:
Use the speed value inside the game loop. The snake should move only after enough time has passed based on the selected difficulty.

Steps to Reproduce:

  1. Open the Snake game.
  2. Select Easy and start the game.
  3. Restart and select Hard.
  4. Notice that the snake speed does not meaningfully change.

Files affected:
web-app/js/projects/snake.js

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions