⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 head.h

📁 代码+论文 (一篇很好的毕业论文
💻 H
字号:
#include <graphics.h>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <time.h>
#include <dos.h>

#define SIZE 8
#define UP      0x4800
#define DOWN    0x5000
#define LEFT    0x4b00
#define RIGHT   0x4d00

#define A       0x1e61
#define S       0x1f73
#define D       0x2064
#define W       0x1177

#define ESC     0x011b
#define ENTER   0x1c0d
#define SPACE   0x3920

#define F1      0x3b00
#define F2      0x3c00

#define Y1      0x1559
#define Y2      0x1579

#define N1      0x314e
#define N2      0x316e

/*mainFace.h文件中的函数声明*/
void drawmat(char *mat,int matsize,int x,int y,int color);/*汉字点阵*/
void showStar(void);/*星空效果*/
void showBorder(void);/*边框*/
void showCaption(void);/*在(x,y)处显示欢乐五子棋,字间距为z*/
void showInterfaceChessboard(void);/*显示主界面的棋盘*/
void showMenuBG(void);/*显示菜单背景色*/
void showMenuFG(int fg1,int fg2,int fg3,int fg4);/*显示菜单前景色*/
void showMenu(int sele);/*显示主菜单函数*/
void runMenu(int sele);/*执行菜单*/
void moveMenu(void);/*移动菜单*/
void showAuthor(void);/* 显示作者 */
int showInterface(void);/*初始化游戏主界面*/


/*playFace.h文件中的函数声明*/
void playFace(void); /*初始化游戏界面*/
void drawQP(void);/*画棋盘函数*/
void borderBack(void);/*初始化边框背景*/
void rightTitle(void);/*初始化右侧标题*/
void printScore(void);/* 显示分数 */
int judgeGameover(void);/* 如果黑棋胜出返回1,白棋胜出返回2,胜负未分返回0,平手返回3 */
void Gameover(int n);/* 游戏结束 */
void showYorN(int color);/* 显示按键是Y还是N */
int judgeYorN(void);/* 判断按键是y还是n */
void dispMouse(int x,int y,int color);/*显示光标函数*/
int judge1(int x,int y,int color,int op);/* 判断是否能落子 */
int judge2(int x,int y,int color,int op);
int judge3(int x,int y,int color,int op);
int judge4(int x,int y,int color,int op);
int judge5(int x,int y,int color,int op);
int judge6(int x,int y,int color,int op);
int judge7(int x,int y,int color,int op);
int judge8(int x,int y,int color,int op);

/* pvsCom.h人机对战文件 */
void playGame(void);/*人机对战函数*/
int moveTimes(int color);/* 检测行动力,color代表棋子颜色 */
int judgeEnter(int x,int y,int color);/* 判断x,y位置能吃掉对方棋子个数,返回0则表示不能落子,color表示棋子颜色 */
void drawLast(int x,int y,int color);/* 用动画显示吃掉对方棋子 */

/* pvsP.h人人对战文件 */
void pvsP(void);/* 人人对战函数 */

/* 游戏说明 */
void moveWord(void);
void prep_word(void);
void showWord(int x,int y,int z);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -