Browse Source

added initiate Field function

remotes/origin/ticTacToe
Aimee Reincke 2 years ago
parent
commit
76453c39de
  1. 13
      src/c/ticTacToe.c
  2. 1
      src/c/ticTacToe.h

13
src/c/ticTacToe.c

@ -23,4 +23,15 @@ void printField(char field[3][3]){
}
printf("\n");
}
}
}
char initField(){
char field[3][3] =
{
{'-','-','-'},
{'-','-','-'},
{'-','-','-'}
};
return field;
}

1
src/c/ticTacToe.h

@ -4,5 +4,6 @@
int something(int a);
void printPrompt();
void printField(char field[3][3]);
char initField();
#endif
Loading…
Cancel
Save