Introduction - If you have any usage issues, please Google them yourself
Create a dialog based application, show the game area on the client area, when you click the "start" button, display 3 randomly appear food and snake in the game zone. The initial length of the snake is 4 units, moving along a direction, press the keyboard "↑", "↓", "-", "-" key can change the direction of the snake. At regular intervals, the snake in accordance with the current direction 1 lattice. The snake to eat a food, the body grows 1 lattice, eat red food had 1 points, 2 points to eat blue food, eat yellow food 3, numerical display in the scoring column. When the snake across borders or your body, the end of the game.