- Line draw - Bressenham line drawing algorithm
- Circle draw - Bressenham circle drawing algorithm
- Filling - 4 connected Flood-fill algorithm
- Snake size increased by one every time it eats food.
- Snake can only change direction at a right angle;
- Snake move is controlled by arrow-key(left, right, up, down).
- It's not possible to change the direction to the opposite direction;
- Game will be over if the snake touches itself.
- When the snake crosses the grid boundary, it reappears from the opposite direction.
- Grid cell will be filled with color when clicked.
- New food will appear in every 3s/4s.
Thanks.