로딩
요청 처리 중입니다...

[c언어] 틱택토 게임 컴퓨터와 대결

 [c언어] 틱택토 게임 컴퓨터와 대결

#include #include void init_board(char b[][3]) { // initialize with a blank character int i, j; for (i = 0; i < 3; i++) for (j = 0; j < 3; j++) b[i][j] = ' '; } void draw_board(char b[][3]) { int i; for (i = 0; i < 3; i++) { printf("|---|---|---|\n"); printf("| %c | %c | %c |\n", b[i][0], b[i][1], b[i][2]); } printf("|---|---|---|\n\n"); } void welcome_message() { printf("Welcome to my tic-tac-toe game.\n"); printf("The coordinates are,\n"); printf("|---|---|---|\n"); printf("...

# c언어tictactoe # tictactoe게임 # 틱택토프로그램