Hey, I was wondering if someone can help me with my C program inTic-Tac-Toe. My problems is:
– Now my board prints the numbers 0-8 and I want the board tohave the numbers 1-9 on the board.
– Now the program don’t understand when someone has three in arow. I want it to annonce when the first has three in or raw orthat it’s a draw.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define BOARD_SIZE 9
#define NUMBER_TO_WIN 3
#define COMPUTER -1
#define PLAYER 1
struct tictac // Structure Data Members
{
int gamesquare[10];
int Player, choice, mark;
unsigned Seed;
};
void checkwin(struct tictac *, int *Status);//functionprototype
void board(struct tictac); //functionprototype
int main()
{
struct tictac t; //Declaration of structure variable
int
PayPal Gateway not configured
PayPal Gateway not configured