game.h
#ifndef __GAME_H__
#define __GAME_H__
#include<stdlib.h>
#include<stdio.h>
#include<stdio.h>
#include<string.h>
#include<time.h>
enum OPTION
{
EXIT,
PLAY
};
#define COLS 3
#define ROWS 3
void init_board(char board[ROWS][COLS], int rows, int cols);
void printf_board(char board[ROWS][COLS], int rows, int cols);
void player_move(char board[ROWS][COLS], int rows, int cols);
void computer_move(char board[ROWS][COLS], int rows, int cols);
int check_win(char board[ROWS][COLS], int rows, int cols);
#endif //__GAME_H__
game.c
#define _CRT_SECURE_NO_WARNINGS 1
#include"game.h"
void init_board(char board[ROWS][COLS], int rows, int cols)
{
memset(board,'