資源簡介
C語言,人工智能的貪食蛇,有挺大幾率吃到滿屏的,很酷。人工智能的貪食蛇,有挺大幾率吃到滿屏的,很酷。人工智能的貪食蛇,有挺大幾率吃到滿屏的,很酷。
代碼片段和文件信息
#include?“Function.h“
int?main(void)?{
srand((unsigned?int)time(NULL));
createInterface(); //創建游戲界面
getchar(); //回車開始
while?(Snake.size()?
snakeMove(); //移動一步
printSnake(); //打印新的蛇
Sleep(30); //控制移動速度
}
getchar(); //回車結束
return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????381??2017-09-27?09:39??AISnake.cpp
?????文件????1620953??2017-09-27?09:52??AISnake.exe
?????文件??????22528??2017-09-22?10:19??AISnake_version4.0.exe
?????文件???????1362??2017-09-22?10:20??AISnake_version4.0.sln
?????文件??????27617??2017-09-22?11:09??Function.h
?????文件???36185732??2017-09-22?11:09??Function.h.gch
?????文件??????12327??2017-09-22?11:03??Prepare.h
?????文件???35722852??2017-09-22?11:03??Prepare.h.gch
?????文件?????270398??2017-09-22?10:18??Snake.ico
-----------?---------??----------?-----??----
?????????????73864150????????????????????9
評論
共有 條評論