-
C语言实现贪吃蛇
//: Snake.c
/* * * * * * * * * * * * * * * * * * * * * * *
// Project: RedSnake(贪吃蛇)
// Author: Problue
// Version: 1.0
// Date: 19:55 2012-10-29
* * * * * * * * * * * * * * * * * * * * * * */
#include
#include
#include
#include "pcc32.h"
// 定义地图的尺寸及坐标
#define MAP_WIDTH 32 // 地图宽度
#define MAP_HEIGHT 32 // 地图高度
#define OFFSET_X 1 // 地图左右的边距
#define OFFSET_Y 1 // 地图上下的边距
#define TOTAL_WIDTH (MAP_WIDTH + OFFSET_X * 2) // 窗口宽度
#define TOTAL_HEIGHT (MAP_HEIGHT + OFFSET_Y * 2) // 窗口高度
#define GotoMap(x, y) gotoTextPos((x) * 2, (y))
// 定义地图方格的状态,分别为: 空格、蛇头、蛇身、蛇尾、食物
#define BS_SPACE 0
#define BS_SHEAD 1
#define BS_SBODY 2
#define BS_STAIL 3
#define BS_FOOD 4
// 蛇默认长度
#define SNAKE_MIN_LEN 5
// 定义蛇运动方向: 上、下、左、右
#define DIR_UP 1
#define DIR_DOWN 2
#define DIR_LEFT 3
- 2022-05-15 19:59:34下载
- 积分:1
-
平面阵列波束控制
beam steering using planar arrays
- 2022-02-02 07:22:12下载
- 积分:1
-
library management system
library management system
- 2022-02-14 12:20:28下载
- 积分:1
-
学习WPF时写的DOME,很多很花的功能还不会做,这是最最最最最简单的...
学习WPF时写的DOME,很多很花的功能还不会做,这是最最最最最简单的-When learning WPF written DOME, spent a lot of features will not do, this is the most most most simple
- 2022-06-16 12:30:30下载
- 积分:1
-
电子地图瓦片自动融合与转换
"产品名称:天地图瓦片自动融合与转换程序。"; 版本:1.1"; "说明:天地图瓦片自动融合程序,能实现对瓦片的分块融合,以及不同坐标系之间的的转换。在地理信息行业中有广泛的应用。。
- 2022-01-25 20:18:34下载
- 积分:1
-
求最小Hamilton回路功能:在n个顶点的带权图G中,一条Hamilton回路是一顶点序列v1,v2,• • • •...
求最小Hamilton回路功能:在n个顶点的带权图G中,一条Hamilton回路是一顶点序列v1,v2,• • • • vn 其中,每个顶点vi由一条边连到vi+1(i=1,2,• • • • • ,n-1),而vn被连到v1。在所有的Hamilton回路中,寻找一条权值和最小的回路,这条回路就是最小Hamilton回路-circuit for the smallest functional Hamilton : n vertices with the right graph G, a Hamilton Circuit is a sequence of vertices v1, v2,# 8226# 8226# 8226# 8226 T. which each vertex vi even from one side to a vi (i = 1,2,# 8226# 8226# 8226# 8226# 8226, n-1), which was connected to the T. v1. All the Hamilton circuit, finding a value and the right to the smallest circuit, this circuit is the smallest HamiltonianCycle
- 2023-08-14 10:15:03下载
- 积分:1
-
svm_alignment_0.7
This the implementation of structural SVM for training complex alignment models for protein sequence alignment, especially for homology modeling. The structural SVM algorithm can incorporate many relevant features like secondary structure, relative exposed surface area, profiles and their various interaction into the alignment model. It was developed under Linux and compiles under gcc, built upon the svm^light software by Thorsten Joachims.
- 2022-01-22 01:39:21下载
- 积分:1
-
用于实时显示指定的文件内容,方便调试jsp/java时,显示其生成的debuglog。...
用于实时显示指定的文件内容,方便调试jsp/java时,显示其生成的debuglog。-designated for real-time display of the contents of the documents to facilitate debugging jsp/java, the show generated debuglog.
- 2022-01-26 07:30:37下载
- 积分:1
-
This procedure is mainly CTimer describes how to use the timer, there is a need...
本程序主要是介绍如何使用CTimer定时器,有需要的可以下来自己研究-This procedure is mainly CTimer describes how to use the timer, there is a need to study the can down their own
- 2022-06-16 08:58:17下载
- 积分:1
-
vpn开发源代码
delphi版的vpn源码,对你开发连接器有一定的指导作用。基于Delphi实现的VPN拨号器源程序代码,填写VPN服务器IP/域名,帐号密码后自动建立VPN连接,实现拨号!
- 2022-02-05 22:18:28下载
- 积分:1