-
C# 抓鬼游戏,类似打地鼠游戏
C# 抓鬼游戏,其实类似于打地鼠游戏,看到地上那些洞洞,让我想起了打地鼠,呵呵。不过玩法上也很相似,只是地鼠变成了“魔鬼”,开启游戏后,按键盘上的空格键可开始游戏。
bool isStart = false;
Random rd;//随机数对象
int[,] points;//地鼠出现坐标
int score;//积分
int level;//游戏等级
bool ok = true;//用于解决鼠标快速连击所产生的积分增加
ok = false;//使ok为false,再次点击时由于不满足上面的if条件便不执行后面的操作
//this.Cursor = new Cursor("SizeDown.cur");
score += 100;//积分增加
this.pictureBox1.Visible = false;//使地鼠消失
lblScore.Text = score.ToString();
//若当前积分是2000的倍数则升级且加快计时器速度
- 2022-12-21 06:25:03下载
- 积分:1
-
POAsuanfa
poa算法,关于梯级水电调度的c#算法源程序。适合梯级水电站短期优化调度(The algorithm, on the dispatch of cascade c# algorithm source program. For the short-term optimal scheduling of cascade hydropower stations)
- 2015-04-21 15:34:45下载
- 积分:1
-
4.2
基于dijkstra和广度搜索的加权有向图有必经点的点对点的最短路径算法,路径必须经过要求的必经点,且不成环。
该算法采用了一种自适应调整的方法,经过多次迭代,使解收敛。 但只是寻找了一个略优的可行解(每次迭代都基于贪婪算法寻找),不能保证最优解。而且如果图过于稀疏,因为收敛速度过快,可能导致问题无解(收敛于一个局部最优解,没有经过所有点)。 解决相对稠密的图(每个点的平均出入度4以上),表现良好。
备注:里面有一个QT的工程,可以直接打开(源码里没用QT的库)(Weighted Dijkstra and breadth first search based on a shortest path algorithm must point to point to the map, the path must pass through points, and not a ring.
This algorithm adopts an adaptive method to adjust, after several iterations, the convergence of solution. But only to find a slightly better feasible solution (each iteration is based on the greedy algorithm to find), can not guarantee the optimal solution. And if the graph is too sparse, because the convergence speed is too fast, it may lead to the problem of no solution (convergence to a local optimal solution, not after all points). To solve the relatively dense graphs (each entry point average above 4), good performance.)
- 2016-04-06 11:35:48下载
- 积分:1
-
textlisttree
介绍LABWINDOWS的TEXTLISTTREE使用方法(LabWindows TEXTLISTTREE introduce the use of)
- 2008-05-27 15:15:41下载
- 积分:1
-
mp3decoderforarm
可以通过这个制作一台mp3播放器的全套代码,包括arm的启动过程,控制codec aic23的全套过程(through the production of a mp3 player is the set of codes, including the arm of the startup process. aic23 control codec is the set of process)
- 2020-12-07 14:09:21下载
- 积分:1
-
WDM_Driver
windows驱动详解张帆著 第一章 源码 wdm_driver,非常详细适合入门级的驱动开发(Detailed sails windows driver source code with the first chapter wdm_driver, very detailed for entry-level driver development)
- 2013-10-23 10:59:55下载
- 积分:1
-
Exemples
this is the best exemle of a program in c++
- 2013-11-13 06:00:04下载
- 积分:1
-
lesson1
说明: 基于51单片机通信的其中一种,I2C总线通信。(I2C bus communication is one of 51 MCU communication.)
- 2020-06-18 18:00:01下载
- 积分:1
-
C# 磁性窗体 实例源码下载( 可吸附在主窗体上下左右)
C# 磁性窗体 实例源码下载( 可吸附在主窗体上下左右)
- 2013-11-17下载
- 积分:1
-
calculator_cSharp
基于C#的万年历小程序,能够实现万年历的读取,设置时间等功能(Small calendar program based on C#, to achieve the calendar read, set time and other functions)
- 2013-04-22 22:40:50下载
- 积分:1