-
windows mobile Demo_StepByStep very good introductory information on
windows mobile Demo_StepByStep,很不错的入门资料-windows mobile Demo_StepByStep very good introductory information on
- 2022-01-25 20:21:19下载
- 积分:1
-
一个关于字符串匹配的算法,已经经过编译,希望对你有帮助...
一个关于字符串匹配的算法,已经经过编译,希望对你有帮助-on a string matching algorithm, has been built, want to help you
- 2022-06-18 19:44:21下载
- 积分:1
-
一个相当不错的凸包生成程序,对大家学习有挺好的帮助
一个相当不错的凸包生成程序,对大家学习有挺好的帮助-a pretty good convex hull generation procedures, we have very good learning with the help of
- 2022-11-26 14:10:03下载
- 积分:1
-
ga优化神经网权值&阈值程序。
优化的基本原理和过程很多论文可以查到...
ga优化神经网权值&阈值程序。
优化的基本原理和过程很多论文可以查到-ga optimizing neural network weights
- 2023-02-16 15:35:04下载
- 积分:1
-
Please read your package and describe it at least 40 bytes in English.
Please read your package and describe it at least 40 bytes in English.
- 2022-03-16 03:14:26下载
- 积分:1
-
a very small, the drive switches control procedures in the hope that we can give...
一个非常小的,控制光驱开关的程序,希望大家给一点建议:leilei9098@163.com-a very small, the drive switches control procedures in the hope that we can give some suggestions : leilei9098@163.com
- 2022-01-31 09:50:53下载
- 积分:1
-
这是我自己在学习VB过程中所编的一个钟的程序,不知道能不能行...
这是我自己在学习VB过程中所编的一个钟的程序,不知道能不能行-This was my learning process VB series by a 10-minute procedure, I do not know whether or not OK
- 2022-01-25 18:58:25下载
- 积分:1
-
项目名称:acotsp
大师级人物写的蚁群算法解决TSP问题,真的挺不错,你可以下下来看看的.- Program s name: acotsp
Ant Colony Optimization algorithms (AS, ACS, EAS, RAS, MMAS, BWAS) for the
symmetric TSP
Copyright (C) 2004 Thomas Stuetzle
This program is free software you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
email: stuetzle no@spam informatik
- 2023-01-14 12:40:03下载
- 积分:1
-
建立哈夫曼树和哈夫曼编码的程序,每一行都有详细的注解,比较适合初学者...
建立哈夫曼树和哈夫曼编码的程序,每一行都有详细的注解,比较适合初学者-The establishment of Huffman trees and Huffman coding procedure, each line has a detailed annotation, more suitable for beginners
- 2023-04-12 19:40:03下载
- 积分:1
-
迷宫追寻小游戏 C++MFC
应用背景
这个游戏为玩家控制红色方块,去吃掉棕色,绿色,蓝色的方块,一旦一个方块被吃,便会自动生成另一个相同颜色的方块。直到游戏时间结束为止。
程序函数功能:
ondraw函数:
显示游戏界面(用画刷刷成白色),显示地图(黑色),显示食物0,1,2(分别为:棕色,绿色,蓝色),显示玩家(红色)
显示文字,时间,分数。
OnEraseBkgnd函数:
用来更新窗口背景,游戏以位图为窗口背景。
OnGameStart函数:
关联窗口菜单中的开始游戏。包括:
IniGame();(初始化游戏)
m_nGameStatus=1;(游戏状态1,开始)
SetTimer(1,100,NULL);(定时器0.1秒执行一次OnTime)
Invalidate();(转向OnDraw)
IniGame函数:
初始化游戏,确定游戏显示位置,确定玩家初始位置,转向IniAim函数
IniAim函数:
初始化目标,这里的三个目标的位置为随机产生。
OnKeyDown函数:
监控设备按下的键,确定玩家移动方向。
ReDisPlay函数:
重画点所在的小方块。减少对Invalidate()的调用,使屏幕不太闪硕。
OmTimer函数:
完成时间的计算。
关键技术游戏中的人工智能:
棕色方块的移动算法为基本寻路算法—物体沿着墙走。
绿色方块的移动算法为基本的逃避算法—物体总会向玩家的反方向移动。
蓝色方块的移动算法为漫游算法—随机产生一个方向值,物体移动的方向不
- 2022-03-23 18:25:51下载
- 积分:1