?? bwchess.c
字號:
/*********************************************************************
軟件名稱:黑白棋
版本:1.0
作者:李建華 (計算機002班 天津工業大學)
網絡ID:逍遙 (QQ:34098003)
E-mail:XoYoSoft@163.com
軟件開發語言:Turbo C 2.0
*********************************************************************/
/************************頭文件引用開始******************************/
#include "graphics.h"
#include "bios.h"
#include "stdlib.h"
#include "stdio.h"
#include "io.h"
#include "dos.h"
#include "fcntl.h"
#include "conio.h"
#include "time.h"
/***********************頭文件引用結束*****************************/
/*************************常量及宏定義開始*********************************/
#define Word unsigned int
#define Byte unsigned char
/* 棋子直徑 */
#define DET 40
/* 鍵盤代碼 */
#define RIGHT 77
#define LEFT 75
#define UP 72
#define DOWN 80
#define ESC 27
#define SPACE 32
#define ENTER 13
/* 顏色代碼 */
#define WC WHITE
#define BC DARKGRAY
#define TABLECOLOR 6
#define TABLESHADOW 7
#define EDGECOLORW BC
#define EDGECOLORB WC
#define BKCOLOR 0
#define INFBKCOLOR GREEN
#define GRIDCOLOR YELLOW
/* 棋子總數 */
#define TOTALCHESS 64
/****************************常量及宏定義結束*******************************/
/***********************結構體與全局變量定義開始*******************************/
struct tchess{
int color;
int flag;/*0:沒放子,1:放子*/
};
struct tchess chess[9][9];
int tablex0,tabley0;/*棋盤的起始坐標*/
int curr,curc;/*當前的行列*/
int curkey;/*當前的按鍵*/
int curchess;/*當前該哪種顏色的棋走*/
int wccount=0,bccount=0;/*初始時黑白棋子各0個*/
int flag16;
int curmenunum=1/*當前的菜單號*/,selectmenunum=0;/*選中的菜單號(0表示沒選擇)*/
int ptocflag=0;/*人對大戰標記*/
/********************結構體與全局變量定義結束***************************/
/**********************函數聲明開始****************************/
void autochess();
void autoput();
void callend();
void computerput();
int canputchess(int r,int c);
int canputcurchess();
void clearmenubox();
int convert(Byte ch,int n);
void drawbox(int x1,int y1,int x2,int y2,int color);
void drawboxt(int x1,int y1,int x2,int y2);
void drawboxa(int x1,int y1,int x2,int y2);
void drawedge(int r,int c,int color);
void drawinf();
void drawmat(char *mat,int matsize,int x,int y,int color);
void drawmenucur(int curmenu);
void drawmenuselect(int selectmenu);
void drawtable(int x,int y);
void drawwin(int x1,int y1,int x2,int y2,int color);
void initchesstable();
void keybuffer(char k1,char k2);
void menuselect();
int out16hz(int x,int y,int z,int color ,char *p);
void printinfbw();
void printscore();
void ptop();
void ptoc();
void putchess(int r,int c,int color);
void resettable();
int specialkey();
void waitkey();
void drawchess(int r,int c,int color);
/*******************函數聲明結束*******************************/
/*******************定義字模開始************************************/
char author1[]={
/* 以下是 '作' 的 24點陣方正水柱簡體 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0C,
0x00,0x03,0x0C,0x00,0x06,0x1F,0xFC,0x0E,
0x3F,0xFE,0x1C,0x7F,0x00,0x7C,0xFE,0x00,
0x7C,0x7C,0x00,0x0C,0x0C,0x00,0x00,0x0E,
0x3C,0x00,0x0E,0x7C,0x04,0x0E,0x00,0x04,
0x0C,0x00,0x04,0x0C,0x00,0x0C,0x0C,0x00,
0x0C,0x0E,0x00,0x0C,0x0F,0xFE,0x0C,0x0F,
0xFE,0x0C,0x0E,0x00,0x0C,0x0E,0x00,0x0C,
0x0C,0x00,0x0C,0x0C,0x00,0x00,0x00,0x00,
};
char author2[]={
/* 以下是 '者' 的 24點陣方正水柱簡體 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,
0x00,0x00,0xF0,0x18,0x1F,0xFF,0xB8,0x01,
0xF8,0x30,0x00,0x60,0x60,0x00,0x60,0x00,
0x01,0xFB,0xE0,0x3F,0xFF,0xFE,0x00,0x3E,
0x00,0x00,0x7C,0x00,0x01,0xFE,0x00,0x0F,
0xFF,0xFC,0x7E,0x00,0x38,0x3E,0x00,0x18,
0x06,0x00,0x38,0x07,0xBF,0xF8,0x06,0x00,
0x38,0x0C,0x00,0x18,0x0E,0x00,0x18,0x0F,
0xFF,0xF8,0x0E,0x00,0x00,0x00,0x00,0x00,
};
char author3[]={
/* 以下是 ':' 的 24點陣方正水柱簡體 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x06,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
char authorn1[]={
/* 以下是 '李' 的 24點陣經典粗黑簡 字模,72 byte */
0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x18,
0x00,0x3F,0xFF,0xFC,0x3F,0xFF,0xFC,0x00,
0xFF,0x00,0x01,0xDB,0x80,0x07,0x99,0xC0,
0x0E,0x18,0xF0,0x7C,0x00,0x7E,0x31,0xFF,
0x9C,0x01,0xFF,0xC0,0x00,0x07,0x80,0x00,
0x37,0x00,0x00,0x3E,0x00,0x3F,0xFF,0xFC,
0x3F,0xFF,0xFC,0x00,0x0C,0x00,0x00,0x0C,
0x00,0x00,0x0C,0x00,0x00,0x7C,0x00,0x00,
0x78,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
char authorn2[]={
/* 以下是 '建' 的 24點陣經典粗黑簡 字模,72 byte */
0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x47,
0x08,0x3F,0x7F,0xF8,0x0E,0x03,0x18,0x0E,
0x03,0x18,0x0C,0x7F,0xFC,0x1C,0x07,0x38,
0x18,0x03,0x18,0x3F,0x7F,0xF8,0x3F,0x7F,
0xF8,0x03,0x03,0x00,0x03,0x7F,0xF8,0x33,
0x7F,0xF8,0x32,0x03,0x00,0x1A,0x07,0x00,
0x1E,0x7F,0xFC,0x0E,0x07,0x00,0x0E,0x03,
0x00,0x1F,0x80,0x00,0x39,0xFF,0xFE,0x30,
0xFF,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,
};
char authorn3[]={
/* 以下是 '華' 的 24點陣經典粗黑簡 字模,72 byte */
0x00,0x00,0x00,0x01,0x00,0x00,0x03,0x86,
0x00,0x07,0x06,0x10,0x0E,0x06,0x30,0x1E,
0x07,0xF0,0x3E,0x07,0xE0,0x36,0x7F,0x80,
0x06,0x3E,0x00,0x06,0x26,0x0C,0x06,0x06,
0x1C,0x06,0x07,0xFC,0x06,0x07,0xF8,0x00,
0x00,0x00,0x00,0x18,0x00,0x3F,0xFF,0xFC,
0x3F,0xFF,0xFC,0x00,0x3C,0x00,0x00,0x18,
0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,
0x18,0x00,0x00,0x18,0x00,0x00,0x00,0x00,
};
char titleh[]={
/* 以下是 '黑' 的 64點陣經典繁淡古 字模,512 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0xFE,0x00,0x00,0x00,
0x00,0x00,0x01,0xFF,0xFF,0xF0,0x00,0x00,
0x00,0x00,0x1F,0xFF,0xFF,0xFE,0x00,0x00,
0x00,0x00,0x7F,0xFF,0xFF,0xFF,0x00,0x00,
0x00,0x03,0xFF,0xFF,0xFF,0xFF,0x80,0x00,
0x00,0x07,0xFC,0x0F,0xF0,0x0F,0x80,0x00,
0x00,0x0F,0x00,0x03,0xF0,0x00,0x00,0x00,
0x00,0x0F,0x00,0x03,0xE0,0xE0,0x60,0x00,
0x00,0x0F,0x00,0x01,0xE1,0xF0,0x70,0x00,
0x00,0x1E,0x0F,0x01,0xC1,0xF8,0x78,0x00,
0x00,0x1E,0x1F,0x81,0xC0,0xF8,0x78,0x00,
0x00,0x1E,0x1F,0x81,0xC0,0xF8,0x78,0x00,
0x00,0x1E,0x0F,0xC1,0xC1,0xF8,0x7C,0x00,
0x00,0x1E,0x0F,0xC1,0xC1,0xF8,0x7C,0x00,
0x00,0x1E,0x07,0xC1,0xC3,0xF0,0x7C,0x00,
0x00,0x1E,0x07,0xC1,0xE7,0xC0,0x7C,0x00,
0x00,0x1E,0x03,0xC1,0xE7,0x80,0x7C,0x00,
0x00,0x1E,0x00,0x83,0xF8,0x00,0xFC,0x00,
0x00,0x1E,0x00,0xFF,0xFC,0x01,0xFC,0x00,
0x00,0x1F,0x07,0xFF,0xFF,0xFF,0xF8,0x00,
0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xF0,0x00,
0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xE0,0x00,
0x00,0x0F,0xFF,0xFF,0xFF,0xFF,0xC0,0x00,
0x00,0x0F,0xFE,0x0F,0xF0,0xFF,0x80,0x00,
0x00,0x07,0xF0,0x01,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x1F,0xFF,0xC0,0x00,0x00,
0x00,0x00,0x07,0xFF,0xFF,0xFE,0x00,0x00,
0x00,0x01,0xFF,0xFF,0xFF,0xFF,0x00,0x00,
0x00,0x03,0xFF,0xFF,0xFF,0xFF,0x00,0x00,
0x00,0x01,0xFF,0xFF,0xF8,0xCE,0x00,0x00,
0x00,0x00,0xF0,0x03,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0xF0,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0xFF,0x02,0x00,0x00,
0x00,0x00,0x03,0xFF,0xFF,0xFF,0xF8,0x00,
0x00,0x7F,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,
0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,
0x00,0xFF,0xF0,0x7F,0xF0,0x07,0xFE,0x00,
0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0xC0,0x30,0x0C,0x01,0xE0,0x00,
0x00,0x0F,0xC0,0x78,0x0F,0x01,0xF0,0x00,
0x00,0x1F,0xC0,0x78,0x0F,0x81,0xFC,0x00,
0x00,0x3F,0xC0,0xF8,0x0F,0x80,0xFF,0x00,
0x01,0xFF,0x80,0xF8,0x0F,0xC0,0x7F,0xC0,
0x03,0xFF,0x81,0xF8,0x07,0xE0,0x3F,0xC0,
0x03,0xFE,0x01,0xF0,0x07,0xE0,0x1F,0xC0,
0x03,0xFC,0x01,0xF0,0x07,0xE0,0x0F,0xC0,
0x03,0xF8,0x00,0xE0,0x01,0xE0,0x00,0x00,
0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
char titleb[]={
/* 以下是 '白' 的 64點陣經典繁淡古 字模,512 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x0F,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x1F,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x1F,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x1F,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x7F,0xF0,0x00,0x00,0x00,
0x00,0x00,0x00,0xFF,0xF8,0x00,0x00,0x00,
0x00,0x00,0x01,0xFF,0xFF,0x80,0x00,0x00,
0x00,0x00,0x03,0xFF,0xFF,0xE0,0x00,0x00,
0x00,0x00,0x0F,0xFF,0xFF,0xFE,0x00,0x00,
0x00,0x00,0x3F,0xFF,0xFF,0xFF,0x80,0x00,
0x00,0x00,0x7F,0xFF,0xF8,0xFF,0xC0,0x00,
0x00,0x00,0x7F,0x80,0x00,0x1F,0xE0,0x00,
0x00,0x00,0x78,0x00,0x00,0x07,0xF0,0x00,
0x00,0x00,0x00,0x00,0x00,0x07,0xF0,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0xF8,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0xF8,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0xF8,0x00,
0x00,0x06,0x00,0x00,0x00,0x00,0xF8,0x00,
0x00,0x0E,0x00,0x00,0x00,0x00,0xF8,0x00,
0x00,0x0E,0x00,0x00,0x00,0x00,0x78,0x00,
0x00,0x0E,0x00,0x00,0x00,0x00,0x78,0x00,
0x00,0x1E,0x00,0x00,0x00,0x00,0x7C,0x00,
0x00,0x1E,0x00,0x00,0x00,0x00,0x3C,0x00,
0x00,0x1E,0x00,0x0F,0xE0,0x00,0x3C,0x00,
0x00,0x3E,0x00,0x3F,0xF0,0x00,0x3C,0x00,
0x00,0x3F,0x00,0xFF,0xF8,0x00,0x3C,0x00,
0x00,0x3F,0x00,0xFF,0xF8,0x00,0x3C,0x00,
0x00,0x3F,0x01,0xFF,0xF8,0x00,0x3C,0x00,
0x00,0x3F,0x00,0xFF,0xF0,0x00,0x3C,0x00,
0x00,0x3E,0x00,0x7F,0xE0,0x00,0x3C,0x00,
0x00,0x3C,0x00,0x00,0x00,0x00,0x3C,0x00,
0x00,0x7C,0x00,0x00,0x00,0x00,0x3C,0x00,
0x00,0x7C,0x00,0x00,0x00,0x00,0x3C,0x00,
0x00,0x7C,0x00,0x00,0x00,0x00,0x3E,0x00,
0x00,0x7C,0x00,0x00,0x00,0x00,0x3E,0x00,
0x00,0x7C,0x00,0x00,0x00,0x00,0x3E,0x00,
0x00,0x3C,0x00,0x00,0x00,0x00,0x3E,0x00,
0x00,0x3C,0x00,0x00,0x00,0x00,0x3E,0x00,
0x00,0x3E,0x00,0x00,0x00,0x00,0x7E,0x00,
0x00,0x3E,0x00,0x00,0x00,0x00,0x7E,0x00,
0x00,0x3F,0x00,0x00,0x00,0x01,0xFC,0x00,
0x00,0x3F,0xCF,0xFF,0xF0,0x03,0xFC,0x00,
0x00,0x1F,0xFF,0xFF,0xFF,0x3F,0xFC,0x00,
0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xF8,0x00,
0x00,0x0F,0xFF,0xFF,0xFF,0xFF,0xF0,0x00,
0x00,0x07,0xFF,0xFF,0xFF,0xFF,0xE0,0x00,
0x00,0x03,0xFF,0x3F,0xFF,0xDF,0xC0,0x00,
0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
char titleq[]={
/* 以下是 '棋' 的 64點陣經典繁淡古 字模,512 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0xC0,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0xC0,0x00,
0x00,0x00,0xC0,0x00,0x00,0x03,0xC0,0x00,
0x00,0x00,0xE0,0x00,0x00,0x03,0xE0,0x00,
0x00,0x00,0xE0,0x01,0x80,0x01,0xE0,0x00,
0x00,0x00,0xE0,0x03,0x80,0x01,0xE0,0x00,
0x00,0x00,0xE0,0x03,0xC0,0x01,0xF0,0x00,
0x00,0x00,0xC0,0x07,0xC0,0x01,0xF8,0x00,
0x00,0x00,0xC0,0x07,0xE0,0x03,0xFE,0x00,
0x00,0x00,0xC0,0x0F,0xF8,0x0F,0xFF,0x00,
0x00,0x01,0xE0,0x7F,0xFF,0xFF,0xFF,0x00,
0x00,0x01,0xE0,0x7F,0xFF,0xFF,0xFF,0x00,
0x00,0x03,0xF0,0x3F,0xFF,0xFF,0xFE,0x00,
0x00,0x0F,0xFE,0x0F,0xE0,0x07,0xF8,0x00,
0x00,0xFF,0xFF,0x03,0xC0,0x03,0xF0,0x00,
0x01,0xFF,0xFF,0x03,0xC0,0x01,0xF0,0x00,
0x03,0xFF,0xFF,0x01,0xC0,0x01,0xE0,0x00,
0x03,0xFF,0xFC,0x01,0xE3,0x81,0xE0,0x00,
0x03,0xC7,0xF0,0x01,0xFF,0xC0,0xE0,0x00,
0x00,0x01,0xE0,0x01,0xFF,0x80,0xE0,0x00,
0x00,0x00,0xE0,0x01,0xFC,0x00,0xE0,0x00,
0x00,0x00,0xE0,0x01,0xC0,0x00,0xE0,0x00,
0x00,0x00,0xE0,0x01,0xC0,0x00,0xE0,0x00,
0x00,0x00,0xE0,0x01,0xE0,0x00,0xC0,0x00,
0x00,0x00,0xF0,0x01,0xFF,0x80,0xC0,0x00,
0x00,0x01,0xF8,0x01,0xFF,0xC0,0xC0,0x00,
0x00,0x01,0xF8,0x01,0xFF,0x80,0x80,0x00,
0x00,0x03,0xFC,0x01,0xF0,0x00,0xC0,0x00,
0x00,0x03,0xFE,0x01,0xE0,0x00,0xE0,0x00,
0x00,0x07,0xFF,0x00,0xE0,0x00,0xF0,0x00,
0x00,0x0F,0xFF,0x80,0xC0,0x01,0xF8,0x00,
0x00,0x1F,0xFF,0x80,0xC0,0x01,0xFE,0x00,
0x00,0x3F,0xFF,0x80,0xE0,0x07,0xFF,0x80,
0x00,0x7F,0xFA,0x01,0xFF,0xFF,0xFF,0xE0,
0x05,0xFF,0xE0,0x07,0xFF,0xFF,0xFF,0xF0,
0x0F,0xFF,0xE0,0xFF,0xFF,0xFF,0xFF,0xF0,
0x0F,0xF9,0xE3,0xFF,0xC0,0x01,0xFF,0xF0,
0x0F,0xE0,0xE3,0xFF,0x00,0x00,0x00,0x40,
0x07,0xC0,0x61,0xE0,0x00,0x00,0x00,0x00,
0x07,0x80,0x60,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x60,0x00,0x00,0x07,0x00,0x00,
0x00,0x00,0x60,0x00,0xF0,0x0F,0xC0,0x00,
0x00,0x00,0xE0,0x01,0xF0,0x0F,0xF0,0x00,
0x00,0x00,0xE0,0x03,0xF0,0x07,0xF8,0x00,
0x00,0x00,0xE0,0x07,0xE0,0x07,0xFC,0x00,
0x00,0x00,0xE0,0x0F,0xC0,0x03,0xFC,0x00,
0x00,0x00,0xE0,0x0F,0x80,0x01,0xFE,0x00,
0x00,0x00,0xE0,0x1F,0x80,0x00,0xFE,0x00,
0x00,0x00,0xE0,0x0F,0x00,0x00,0x7E,0x00,
0x00,0x00,0xC0,0x00,0x00,0x00,0x3E,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
/**********************定義字模結束********************************/
/******************************************************************************/
/*畫棋盤8x8*/
void drawtable(int x,int y)
{
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -