|
@ -2,14 +2,24 @@ |
|
|
#include "TicTacToe.h" |
|
|
#include "TicTacToe.h" |
|
|
|
|
|
|
|
|
int main() { |
|
|
int main() { |
|
|
|
|
|
int pos1 = 1; |
|
|
|
|
|
int pos2 = 2; |
|
|
|
|
|
int pos3 = 3; |
|
|
|
|
|
int pos4 = 4; |
|
|
|
|
|
int pos5 = 5; |
|
|
|
|
|
int pos6 = 6; |
|
|
|
|
|
int pos7 = 7; |
|
|
|
|
|
int pos8 = 8; |
|
|
|
|
|
int pos9 = 9; |
|
|
|
|
|
|
|
|
char vertical = '|'; |
|
|
char vertical = '|'; |
|
|
char horizontal[] = "---"; |
|
|
char horizontal[] = "---"; |
|
|
|
|
|
|
|
|
printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); |
|
|
printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); |
|
|
printf("%c %c %c %c\n", vertical, vertical, vertical, vertical); |
|
|
|
|
|
|
|
|
printf("%c %d %c %d %c %d %c\n", vertical, pos1, vertical, pos2, vertical, pos3, vertical); |
|
|
printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); |
|
|
printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); |
|
|
printf("%c %c %c %c\n", vertical, vertical, vertical, vertical); |
|
|
|
|
|
|
|
|
printf("%c %d %c %d %c %d %c\n", vertical, pos4, vertical, pos5, vertical, pos6, vertical); |
|
|
printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); |
|
|
printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); |
|
|
printf("%c %c %c %c\n", vertical, vertical, vertical, vertical); |
|
|
|
|
|
|
|
|
printf("%c %d %c %d %c %d %c\n", vertical, pos7, vertical, pos8, vertical, pos9, vertical); |
|
|
printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); |
|
|
printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical); |
|
|
} |
|
|
} |