The second course design work

I: Experimental Project Name:
Snake

II: Experimental Project Description:
construct a small snake, by controlling its movement to prevent the hit frame, and eat food box, make themselves longer, so keep moving until it hits border end.

Three: Project module structure description:

void startup();小蛇的构造以及边框的构造;
void moveSnakeByDirection();小蛇的移动;
void moveSnakeByDirection();吃食物增长长度;
void show();显示画面。


Four: implement the interface display:

five: code hosting links:

https://gitee.com/dengjun22/Handsome-old-man

Six: Experimental summary (questions + + solution feelings)
problem: process control snake moving in, how can the movement do not need to press the Enter key will be able to move?
To solve the problem: in with the book and the resources in the book it is said, you do not need to press the Enter key, but I found that as long as you do not press the Enter key aircraft will not move during the actual operation, on receiving the keyboard character already in the code, is not.
Thoughts: This week's game is more fast hardware, has been strengthened in the previous basis, make me more puzzled, a lot of things I do not know what is the use of some sentence, nesting, and then plus some letter on behalf of the meaning is not clear, to me, is even harder.

Guess you like

Origin www.cnblogs.com/dengjun22/p/10956852.html