五子棋棋盘 five-in-a-row
用c语言写出可判断输赢的五子棋棋盘
1 | /** |
定义函数 define functions
1 | void init_board(int a[row][col]); |
主程序 main code
1 | int main(int argc, char const *argv[]) |
set the chessboard
1 | /** |
start the game
1 | /** |
output the chessboard
1 | /** |
change the player
1 | /** |
check whether the board is full
1 | /** |
make move
1 | /** |
choose the place
1 | /** |
check whether it is valid
1 | /** |
check whether the player wins
1 | /** |
check whether they are in a line
1 | /** |