c语言-五子棋游戏-代码-源代码-解释.docxVIP

  • 18
  • 0
  • 约1.7千字
  • 约 2页
  • 2021-02-05 发布于天津
  • 举报

c语言-五子棋游戏-代码-源代码-解释.docx

C语言教程:简易五子棋程序 收集于网络 /*纯用字符和数组编的五子棋,棋盘也是用字符画的。 % 编了 1上午了,主要是算法跟按键比较烦,发现有bug-按键速度过快会产生延时显示, 可能是算法不好。 操作:玩家1: a,s,w,d (方向) 空格(落子) 玩家2: 上、下、左、右 回车(落子) ESC:退出 编译测试环境: */ #include #include #include #include #define CRRU Oxbf /*右上角点 197*/ #define CRLU Oxda 厂左上角点 218*/ #define CRLD OxcO 广左下角点 192?/ #define CRRD 0xd9 厂右下角点 217*/ #define CRL 0xc3 严左边 195?/ #define CRR 0xb4 厂右边 190*/ #define CRU 0xc2 /*上边 194*/ #define CRD Oxcl 严下边 193?/ #define CR 0xc5 /*十字交叉点 197?/ #define size 19 char a[size][size]; int ij;int y=3;int x=10; int ij; int y=3; return; void pressct(int m){ switch(m){ Y case 19200: 〃左

文档评论(0)

1亿VIP精品文档

相关文档