Snake Game


About

This project is a web-based Snake game with an integrated leaderboard that tracks and displays the 5 top players and their score. I built the game logic with JavaScript, HTML, and CSS, then created a backend using Node.js, Express, and MongoDB Atlas to store data. The project demonstrates skills in full-stack development, database integration, REST APIs, and dynamic UI design, as well as best web-dev practices like using environment variables for security and structuring data for efficient data queries.

Frontend code (GitHub) GitHub link to this websites code     |    Backend code (GitHub) GitHub link to this websites code

How to Play

  • Use the arrow keys to move.
  • The more food the snake eats, the faster it will move.
  • The game ends if the snake collides with itself or a wall.

Top 5 Leaderboard

Rank Name Score Date
Loading



Score: 1
Speed: 300ms/tile

The game canvas could not be loaded