利用最基础的C语言绘制了一个简易的中国象棋棋盘,代码如下:
#include
int main()
{
int i,j;
int map[19][18]=
{{'a',0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0...},
{'b',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{'c',0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0},
{'b',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...map[i][j]){
case 'a':
printf("10 ");break;
case 'b':
printf(" ");break;
case 'c'...双人象棋项目的最终成品可以通过此处下载https://download.csdn.net/download/weixin_45711556/12691370