Introduction - If you have any usage issues, please Google them yourself
The code is to achieve smart Snake features, the following rules, Snake will automatically turn to the right for the first time after touching the wall, it will automatically turn to the left after the second hit the wall, it will hit the wall after the third anti-the direction of the line and so on.