Browse Source

defined BOARD SIZE

remotes/origin/Ariana
fdai7775 11 months ago
parent
commit
734739bbcc
  1. 1
      src/main/c/GameTic_Tac_Toe/tictactoe.c
  2. 2
      src/main/c/GameTic_Tac_Toe/tictactoe.h

1
src/main/c/GameTic_Tac_Toe/tictactoe.c

@ -1,6 +1,5 @@
#include <stdio.h>
const int BOARD_SIZE = 3;
char board[3][3] = {{'1', '2', '3'},
{'4', '5', '6'},
{'7', '8', '9'}};

2
src/main/c/GameTic_Tac_Toe/tictactoe.h

@ -1,6 +1,8 @@
#ifndef TICTACTOE_H
#define TICTACTOE_H
#define BOARD_SIZE 3
int isValidMove(int choice);
char checkLine(char a, char b, char c);
void start_tictactoe();

Loading…
Cancel
Save