登录
首页 » 算法 » 小游戏贪吃蛇代码

小游戏贪吃蛇代码

于 2022-03-14 发布 文件大小:1.99 MB
0 190
下载积分: 2 下载次数: 1

代码说明:

设计出一个算法,贪吃蛇小游戏怎么做出来的,利用C++语言编写,代码简单,很容易看懂,function [p,ff] = oct3bank(noi);  pi = 3.14159265358979;  Fs = 500000;    %1/(t(2)-t(1));     % Sampling Frequency N = 3;      % Order of analysis filters.  %f=[1.00 1.25 1.60 2.00 2.50 3.15 4.00 5.00 6.300 8.00] ff=[20 25 31.5 40 50 63 80 100 125 160 200 250 315 400 500 630 800 1000 1250 1600 2000 2500 3150 4000 5000 6300 8000 10000 12500 16000] %ff = ((2^(1/3)).^[0:19]);  % Exact center freq.   p = zeros(1,30); % Design filters and compute RMS powers in 1/3-oct. bands

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

发表评论

0 个回复

  • ! 平面杆系结构静力分析程序 ! 先处理源程序 ! ! 主要功能和特点: ! 可调数组 ! 输入单元结点编号和结点位移编码; ! 先处理形成总体刚度阵和结构...
    ! 平面杆系结构静力分析程序 ! 先处理法源程序 ! ! 主要功能和特点: ! 可调数组 ! 输入单元结点编号和结点位移编码; ! 先处理法形成总体刚度阵和结构综合结点荷载 ! 存储总刚上三角元素; ! GAUSS消元法解线性代数方程组; ! 计算结点位移和单元杆端力-! Plane truss structure static analysis program! First treatment source!! Main functions and characteristics:! Adjustable array! Input module node number and node displacement coding ! First approach to form and structure of the overall stiffness matrix Consolidated Statement point load! storage total just on the triangular element ! GAUSS elimination method solving linear algebraic equations ! computing node displacement and force unit rod end
    2022-12-24 13:40:03下载
    积分:1
  • WINCE API函数简介
    1. API之网络函数; 2. API之消息函数; 3. API之文件处理函数; 4.API之打印函数; 5. API之文本和字体函数;  6. API之菜单函数;   7. API之位图、图标和光栅运算函数;8. API之绘图函数;  9. API之设备场景函数;   10. API之硬件与系统
    2022-08-05 21:53:56下载
    积分:1
  • 数值积分实现对一阶微分方程组的计:通过编写程序语言,运用欧拉,预报校正,龙格库塔的方实现对x1微分=x2 x2微分=x3 x3微分=...
    数值积分算法实现对一阶微分方程组的计算:通过编写程序语言,运用欧拉,预报校正,龙格库塔的方法实现对x1微分=x2 x2微分=x3 x3微分=-800*x1-80*x2-24*x3+sin(t); y=800x1 的运算-Numerical integration algorithm for the calculation of first-order differential equations: through the preparation of programming language, the use of Euler and forecast correction, Runge-Kutta method of achieving x1 differential = x2 x2 differential = x3 x3 differential =- 800* x1-80* x2-24* x3+ sin (t) y = 800x1 computing
    2022-01-26 00:33:59下载
    积分:1
  • calculated gumbul extreme section of the order, no fringe examples, because too...
    计算gumbul极值的一段程序,没有附带算例,因为太简单了-calculated gumbul extreme section of the order, no fringe examples, because too simple
    2022-05-29 12:22:10下载
    积分:1
  • des algorithm implementation using c
    简单的实现实现了des加密算法,代码简洁易懂。    密码学是一门古老的学科,在密码学发展的历史上,出现了多种加密方法,又很早的古典加密算法,后来又出现了更成熟的分组密码,公钥密码及流密码等,因为我只涉及了分组公钥密码,所以在这篇文章中就暂且先介绍分组密码,在说分组密码之前要说的就是密码学中常见的两种体制,一种是对称密码体制,一种是非对称密码体制,也叫公钥密码体制。     对称密码体制是指如果一个加密系统的加密密钥和解密密钥相同,或者虽然不同,但是由其中的任意一个可以很容易地推导出另一个,即密钥是双方
    2023-07-28 12:00:02下载
    积分:1
  • thread_tree
    此程序使线程的树和计算为了遍历写作由 c plus
    2022-06-12 20:14:13下载
    积分:1
  • 快速傅立叶变换
    Fast Fourier Transform in C-Fast Fourier Transform in C++
    2022-08-21 02:41:55下载
    积分:1
  • 贪吃蛇源码
    windows命令行模式下贪吃蛇游戏,开始/暂停,移动速度渐变,游戏计时,蛇长统计
    2022-07-07 06:37:15下载
    积分:1
  • 支持分布式网络化制造的智能数控系统的研究
    支持分布式网络化制造的智能数控系统的研究-support distributed network of intelligent manufacturing system of NC
    2022-02-12 01:22:59下载
    积分:1
  • / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = /功能annot
    //=== === === === === === === = //函数说明 //函数名称:PolyFit //函数功能:最小二乘法曲线拟合 //使用方法:double *x ---- 存放n个数据点的X坐标 // double *y ---- 存放n个数据点的Y坐标 // int n -------- 给定数据点个数 // double *a ---- 返回m-1次拟合多项式的m个系数 // int m -------- 拟合多项式的项数,即拟合多项式的最高次为m-1。要求m20,则本函数自动按m=min{n,20}处理 // double *dt --- dt[0]返回拟合多项式与各数据点误差的平方和;dt[1]返回拟合多 // 项式与各数据点的误差绝对值之和;dt[2]返回拟合多项式与各数据 // 点误差绝对值的最大值 //注意事项:拟合多项式的形式为 y = b0 + b1*(x-Xavr)... -//=== === === === === ==== === === === === === === ==== === =// function annotations// function name : PolyFit// Function functions : Least Squares Curve Fitting// Use : double* x n-store data point coordinates of the X//* y double-storage n data point Y coordinates// int n-------- given the number of data points//* a double---- returned to the m-1 m fit polynomial coefficients// int m-------- polynomial fitting items , which is the highest polynomial fitting time for m-1. Request m
    2023-07-25 11:15:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载