Basic snake game in console.
game area is saved in multidimensional array, which is changed every X ms.
After initialization, game works in loop with a few steps:
- Show array to user.
- Get snake location.
- Check area around snake's head.
- Get user input.
- If path is valid, change array according to user input, if its not, game is over.
**
candy
<>
snake's head
()
snake's body
{}
snake's tail
[]
wall