git clone
bundle install
./bin/snake_game # or ruby lib/snake_game.rb
- Snake movements
- Borders colision detection
- Create apples on random positions
- Grow snake and speed when eat apple
- Add points
- Prevent snake from going on opposite direction (BUG)
- Detect snake colision with self
- Improve direction change (sometimes it feels laggy)
Feel free to contribute. I would appreciate it :)
Do whatever you want :P