- Visual observation. The AI is observing a 13x13 space around this head. Six on the left and right site and the Head in the middle.
- Ray tracing along the yellow dashed lines. The AI is able to see himself, walls and the apple.
- Direction (red line) of the snake.
- apple (blue point) and tail compass. Indicates the relativ position according to the apple or the last part of the snake.
- step counter. If the snake doesn't eat an apple in a descried amount of steps the game ends.
- Implementation with ray tune.
Install packages: pip install -r requirements.txt
Be careful with pytorch dependencies. They often might not work with. If so, install on your own.