登录
首页 » 算法 » 基于C的贪吃蛇

基于C的贪吃蛇

于 2022-04-29 发布 文件大小:102.21 kB
0 225
下载积分: 2 下载次数: 1

代码说明:

基于C的贪吃蛇小游戏初始化蛇的图形后,用死循环使游戏进行,每次循环都检测键盘输入,如果有输入,则根据键盘的有效输入和to()改变蛇的下一步方向,否则让蛇以当前方向移动,每次移动需要使用showsnack()函数重新画出蛇,并判断游戏是否结束,还要循环更新时间、分数等信息,当函数返回0时,游戏程序退出。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • POJ经典试题-1091跳蚤
    POJ是北大在线测评系统这里有一些经典试题。跳蚤是一道经典试题代码给出了Accepted算法。
    2022-04-08 10:53:42下载
    积分:1
  • 最新的Levenberg Marquardt 算法。用于非线性最小二乘问题的参数估计和优化!...
    最新的Levenberg Marquardt 算法。用于非线性最小二乘问题的参数估计和优化!-Latest Levenberg Marquardt algorithm. Nonlinear least squares problem for parameter estimation and optimization!
    2022-02-03 14:22:20下载
    积分:1
  • stable matching
    简单的稳定匹配算法实现,无bug Implement Gale-Shapley algorithm of the Stable Matching Problem in your favorite language, and give the matching result of attached ranking data (boys rankings.txt and girls rankings.txt), supposing that the ranking is sorted from high to low. (C++ source file gs make ranking.cc which generates the data is also supplied here.)  
    2023-02-04 07:15:03下载
    积分:1
  • 列主元高斯消去法 是我学习计算方法A时编写的 完成了列主元高斯消去法实现方程组求解。...
    列主元高斯消去法 是我学习计算方法A时编写的 完成了列主元高斯消去法实现方程组求解。-out PCA Gaussian elimination is my calculation A study prepared at the completion of the main-element Gauss elimination method to achieve equation Solving Group.
    2022-04-10 00:25:55下载
    积分:1
  • signal processing of time
    时频富FFT的信号处理
    2022-11-03 13:25:03下载
    积分:1
  • 这是一个迭代法实现的C代码。本算法采用的是SOR迭代法。
    这是一个迭代法实现的C代码。本算法采用的是SOR迭代法。-This is an iterative method to achieve the C code. This algorithm is used SOR iteration.
    2022-05-10 22:57:04下载
    积分:1
  • 算符优先文法
    本课程设计的题目为“FirstVT集和LastVT集生成算法模拟”,它是算符优先分析算法中判断三种优先关系的关键。算符优先分析算法是自底向上分析方法的一种。所谓自底向上分析,也称移近—规约分析,粗略地说它的实现思想是对输入符号串自左向右进行扫描,并将输入符逐个移入一个后进先出的栈中,边移进边分析,一旦栈顶符号串形成某个句型的句柄或可规约串,就用该产生式的左部非终结符代替相应右部的文法符号串,这称为一部规约。重复这一过程直到规约到栈中只剩文法的开始符号则为分析成功,也就确认输入串是该文法的句子。而算符优先分析算法的基本思想只是规定算符之间的优先关系,也就是只考虑终结符之间的优先关系。 本课程设计的要求就是根据文法构造FirstVT集和LastVT集,为以后扩充建造算符优先分析表打好基础。
    2023-05-23 11:25:04下载
    积分:1
  • 已经一整数n,求1!+2!+3!+4!+5!+6!+……+n!,n<1
    已经一整数n,求1!+2!+3!+4!+5!+6!+……+n!,n
    2022-05-10 20:58:45下载
    积分:1
  • 多项式相加减 求导
    多项式相加减 求导-Polynomials modified derivative
    2022-06-16 14:28:38下载
    积分:1
  • 单个文件在以下链接是可用的:
    Individual files are available in the following links: Bessjy -- Bessel functions Jn and Yn for real argument and integer or real order. Bessik -- Modified Bessel function In and Kn for real argument and integer or real order. CBessjy -- Bessel functions Jv and Yv for real or complex arguments and real order. CBessik -- Modified Bessel functions Iv and Kv for complex arguments and real order. -Individual files are available in the following links: Bessjy- Bessel functions Jn and Yn for real argument and integer or real order. Bessik- Modified Bessel function In and Kn for real argument and integer or real order. CBessjy- Bessel functions Jv and Yv for real or complex arguments and real order. CBessik- Modified Bessel functions Iv and Kv for complex arguments and real order.
    2022-04-29 03:27:40下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载