https://github.com/mirokrastanov/snakejs
🎮🐍🍎Web-based JavaScript implementation of the popular game - Snake.
https://github.com/mirokrastanov/snakejs
canvas css game html javascript react web
Last synced: 3 months ago
JSON representation
🎮🐍🍎Web-based JavaScript implementation of the popular game - Snake.
- Host: GitHub
- URL: https://github.com/mirokrastanov/snakejs
- Owner: mirokrastanov
- License: mit
- Created: 2023-06-22T10:33:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-29T15:30:44.000Z (about 2 years ago)
- Last Synced: 2024-05-30T05:33:10.311Z (about 2 years ago)
- Topics: canvas, css, game, html, javascript, react, web
- Language: JavaScript
- Homepage: https://app-library-13e36.web.app/apps/snake
- Size: 159 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snake JS
🎮🐍🍎Web-based JavaScript implementation of the popular game - Snake.
## Live Demo
[
](https://app-library-13e36.web.app/apps/snake)
### The Demo is now part of my app library
- Check out the [App Library](https://app-library-13e36.web.app/)
## Description
- The game [Snake](https://en.wikipedia.org/wiki/Snake_(video_game_genre)) involves a player controlling a constantly moving snake in an attempt to help the snake eat as many apples as possible, without biting its tail or hitting the wall.
- The game is played on a 20x20 board (15x15 for the React implementation in my App Library).
- The snake's length increases each time it eats an apple.
- Once an apple has been eaten a new one spawns at a random location.
## How to play
- To control the snake use the arrow keys to change its direction. Enjoy the game!
- ` ` ⬆️ ` `
- ⬅️⬇️➡️
## How to win
- Do not hit the wall
- Do not bite your tail
## Game Screenshots




## Live Demo
[
](https://app-library-13e36.web.app/apps/snake)
- [Original Source Code](https://github.com/mirokrastanov/snakeJS)
- [React Implementation Code for the App Library](https://github.com/mirokrastanov/app-library/tree/main/client/src/apps/snake)
