https://github.com/tangbc/snake-eat-bugs
🐍🐛 A classical, funny and much more challenging snake game.
https://github.com/tangbc/snake-eat-bugs
Last synced: about 1 month ago
JSON representation
🐍🐛 A classical, funny and much more challenging snake game.
- Host: GitHub
- URL: https://github.com/tangbc/snake-eat-bugs
- Owner: tangbc
- Created: 2019-07-09T01:56:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-03T06:24:11.000Z (about 6 years ago)
- Last Synced: 2025-03-03T03:26:22.763Z (over 1 year ago)
- Language: CSS
- Homepage: https://tangbc.github.io/snake-eat-bugs/
- Size: 486 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## snake-eat-bugs
🐍🐛 A classical and funny, much more challenging snake game.
## Start game
Play online: https://tangbc.github.io/snake-eat-bugs

## Game rules
* Snake cannot eat themselves.
* Snake cannot eat bug leftovers.
* Snake cannot over the boundary line.
## Todo list
* [x] Sound effects.
* [x] Scores ranking.
* [x] Mobile side support.
* [x] Prevent bugs trapped area.
* [ ] Improve interval time loop.
## Contributions
[Report a bug](https://github.com/tangbc/snake-eat-bugs/issues) or step to develop:
```
git clone https://github.com/tangbc/snake-eat-bugs.git
cd /snake-eat-bugs
npm install
npm run dev
```
## Some solutions
#### 1. Prevent bugs trapped area
What's the trapped area mean? look at this screenshot:

In this condition snake can't eat current bug, so it's a problem. We just need list all conditions of trapped area to fix this bug:

Red block is exist bug leftovers, green block is new, if green block will cause these 12 conditions above, we just remove it.
####