You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
771 B

11 months ago
  1. #include <stdio.h>
  2. #include "TicTacToe.h"
  3. int main() {
  4. char vertical = '|';
  5. char horizontal[] = "---";
  6. printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical);
  7. printf("%c %c %c %c\n", vertical, vertical, vertical, vertical);
  8. printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical);
  9. printf("%c %c %c %c\n", vertical, vertical, vertical, vertical);
  10. printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical);
  11. printf("%c %c %c %c\n", vertical, vertical, vertical, vertical);
  12. printf("%c%s%c%s%c%s%c\n", vertical, horizontal, vertical, horizontal, vertical, horizontal, vertical);
  13. }