Learning Java basics through the simple "Snake" game.
Run Game via the SnakeGame.java
class and use the following keys on your keyboard to control the snake:
- 'Arrow Up' for moving Snake up;
- 'Arrow Down' for moving Snake down;
- 'Arrow Left' for moving Snake left;
- 'Arrow Right' for moving Snake right;
If you go outside the screen or collide a tail the game will be over.