Project description
1. Field 20 over 20.
2. There is food on the field, always alone at one moment.
3. The snake moves on one cage and can turn left or right at any time.
4. If the snake eats the food, it gets a +1 rating point and becomes 1 longer on the tail side. After eating, the food appears in a random place (but not on the snake itself).
5. Snake loses if it goes over the edge of the screen or bites its tail
6. The snake can see the entire screen, you can choose what parameters to submit to the snake at the entrance and what function it chooses, what to do next step.
7. There are three options: continue moving straight, turn left, turn right.