diff --git a/TicTacToe.c b/TicTacToe.c new file mode 100644 index 0000000..4c86c76 --- /dev/null +++ b/TicTacToe.c @@ -0,0 +1,32 @@ +#include + +char cPlayfield[3][3] = { + {' ', ' ', ' '}, + {' ', ' ', ' '}, + {' ', ' ', ' '}}; + +char *ptrPlayfield; + +void renderPlayfield(); + +int main() +{ + renderPlayfield(); + return 0; +} + +void renderPlayfield() { + printf(" | 1 | 2 | 3 |\n"); + printf("---------------\n"); + for (int i = 0; i < 3; i++) + { + printf("%d | ", i+1); + for (int j = 0; j < 3; j++) + { + ptrPlayfield = &cPlayfield[i][j]; + printf("%c | ", *ptrPlayfield); + } + printf("\n---------------\n"); + } + +} \ No newline at end of file diff --git a/main b/main new file mode 100755 index 0000000..c9a86bd Binary files /dev/null and b/main differ