Skip to content

Fix Snake food spawn & add real-time score display#82

Open
michaeltsilipiras wants to merge 2 commits intokartikeysingh6:masterfrom
michaeltsilipiras:master
Open

Fix Snake food spawn & add real-time score display#82
michaeltsilipiras wants to merge 2 commits intokartikeysingh6:masterfrom
michaeltsilipiras:master

Conversation

@michaeltsilipiras
Copy link

This PR fixes two main issues in the Snake Game:

  1. Food spawn bug: the food now never appears on the snake.
  2. Score display: the score increases when eating food and is displayed in real-time.

How to Test

  • Run the game, check that snake moves automatically.
  • Eat food and see the score increase.
  • Collisions still end the game as before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant