Snake Game
As part of my studies at Business College Helsinki for the REACT23S course on Databases and Data Structures, I developed a modern twist on the timeless classic Snake game. This project was great to improve my understanding of core programming principles and to engaging, user-friendly web applications.
One of the standout features of this game is the ability for players to set their desired game board size, making each session unique and tailored to their preferences.
For those seeking an extra challenge, the game offers a speed acceleration option. As the snake consumes more food, its speed increases, testing players' reflexes and strategic thinking.
A crucial aspect of the game is its collision detection system. Whether it's the snake running into a wall or its own body, the game accurately detects collisions to ensure a smooth gaming experience.
The game leverages CSS Grid for drawing and dynamically updating the game board. This approach ensures a responsive design that adapts seamlessly to different screen sizes.
To manage the snake's movement and growth, I implemented a queue data structure. This efficiently handles the updating of the snake's body parts as it slithers around the board.
This project not only served as a practical application of the concepts learned during the course but also as a creative outlet for me to experiment with game development and responsive design techniques. Whether you’re a seasoned gamer or just looking for a nostalgic trip down memory lane, this modernized Snake game offers both simplicity and excitement in a well-crafted package.