boolCheckWin(char c) { if (board_data[0][0] == c && board_data[0][1] == c && board_data[0][2] == c) returntrue; if (board_data[1][0] == c && board_data[1][1] == c && board_data[1][2] == c) returntrue; if (board_data[2][0] == c && board_data[2][1] == c && board_data[2][2] == c) returntrue; if (board_data[0][0] == c && board_data[1][0] == c && board_data[2][0] == c) returntrue; if (board_data[0][1] == c && board_data[1][1] == c && board_data[2][1] == c) returntrue; if (board_data[0][2] == c && board_data[1][2] == c && board_data[2][2] == c) returntrue; if (board_data[0][0] == c && board_data[1][1] == c && board_data[2][2] == c) returntrue; if (board_data[0][2] == c && board_data[1][1] == c && board_data[2][0] == c) returntrue;
returnfalse; }
boolCheckDraw() { for (size_t i=0; i < 3; i++) { for (size_t j = 0; j < 3; j++) { if (board_data[i][j] == '-') { returnfalse; } } } returntrue; }