You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
504 B

6 years ago
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#define ROW 3
#define COL 3
void printboard(char board[ROW][COL],int row,int col); //<2F><>ӡ<EFBFBD><D3A1><EFBFBD><EFBFBD>
void initboard(char board[ROW][COL],int row,int col); //<2F><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void playermove(char board[ROW][COL],int row,int col); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void computermove(char board[ROW][COL],int row,int col); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char checkwin(char board[ROW][COL],int row,int col); //<2F><><EFBFBD><EFBFBD>Ӯ
int isfull(char board[ROW][COL],int row,int col); //<2F>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD>Ϊ<EFBFBD><CEAA>