After larning more about clean and optmized code in-depth. This project enables me to implement clean code and re-fresh my skils in pure HTML | CSS | JavaScript once again.
This is a classsical snake game. I'm pretty sure you must have played this before. When the game starts, snake moves and you help him eat the food. while keeping 2 things in mind. 1- You do not hit the wall otherwise the game will over. 2- You do not hit snake's own body by taking turns. And that's it. You keep helping snake eat the food the snake become bigger and bigger so does your score increase and so he complexity.
Write me down if you need any help. Muhammad Qasim
- On eating food each time, Score increases 2+ points.
- If you hit any wall of the board.
- If you hit your own body.
You can easily fork the repo to your github if you want to test it in your pc and play around with code.
Leave a star if you find this helpful , It helps me write more code and fun proojects like this.
Thanks