1. 首页
  2. 编程语言
  3. C
  4. C语言 五子棋源代码

C语言 五子棋源代码

上传者: 2018-12-09 10:55:05上传 C文件 31.89KB 热度 53次
五子棋源代码,里面有原码和OBJ目标码 #include #define N 20 /*定义键盘*/ #define up 0x4800 #define down 0x5000 #define left 0x4b00 #define right 0x4d00 #define esc 0x011b #define enter 0x1c0d #define A 0x1e61 #define S 0x1f73 #define D 0x2064 #define W 0x1177 #define space 0x3920 #define Y 0x1579 #define n 0x316e int gamespeed=5000; int i,j,key; struct Sor { int x; int y;/*x,y表示当前光标的位置*/ int yes[N][N];/* 0表示无棋子,1表示白色棋子,2表示黑色棋子*/ int kao;/* 1表示白棋准备落子,2表示黑棋落子*/ int ok;/*1表示白棋胜出,2表示黑棋胜出*/ }sor; char hong64H[]={ /* 以下 是 '红' 的 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
下载地址
用户评论
码姐姐匿名网友 2018-12-09 10:55:05

有写错误啊,,, BUG 还是蛮多的

码姐姐匿名网友 2018-12-09 10:55:05

不错,挺好用。

码姐姐匿名网友 2018-12-09 10:55:05

貌似运行不了 我最后只做了21点