2019 Second Course Design

A: pilot project name

     “贪吃蛇”

II: Experimental Project Description:

   在画面中构造一条小蛇,0输出空格,-1输出边框,1输出蛇头,二维数组实现小蛇的移动,a,s,d,w控制小蛇的移动,小蛇触碰墙壁或发生自身碰撞时游戏失败,当二维数组canvas的元素值为-2,则输出‘F’吃到食物长度加一。

Three: Project module structure description:

![](https://img2018.cnblogs.com/blog/1580780/201905/1580780-20190531110559858-702655267.png)

Four: Project Screenshots

Five: Code Managed connection:

https://gitee.com/top_500/aggregation/blob/master/3.4%20%E8%B4%AA%E5%90%83%E8%9B%87.cpp

Six: Experimental Summary:

For this experiment the whole pretty good, except for the input of the error codes cause my mentally exhausted, it is very hard to accept, above all other books, according to the book above step by step over, or have a future My own opinion.

Guess you like

Origin www.cnblogs.com/mediaswag666/p/10954142.html