- 6
- 0
- 约2.7千字
- 约 5页
- 2022-06-07 发布于浙江
- 举报
C 语言编写五子棋
本人写的五子棋是在控制台上面可以玩的输入时仅需要输入两个字母表示下棋的行与 列,比如下在一行二列,只需要输入 ab 即可。这里写的是遍历整个棋盘的,所以效率不算太高,但基本能实现五子棋的逻辑。如果需要C++实现的,可以搜索本人的《C++编写五子棋》,如果需要黑白棋,可以搜索本人的《C++编写黑白棋》。
/******************************************************************** created: 2012/03/13
created: 13:3:2012 11:17
filename: e:\Visual Studio 2005\Projects\gobang\gobang\Gobang_c.c file path: e:\Visual Studio 2005\Projects\gobang\gobang
file base: Gobang_c file ext: c
author: terranlong
*********************************************************************
/
#include stdio.h #include stdlib.h
#define CHESSBOARD_SIZE 15
const int linkc
原创力文档

文档评论(0)