11 getmaxyx(stdscr
,row
,col
);
15 /* center base coordinates for the board */
16 const int base_y
= row
/2 - 4;
17 const int base_x
= col
/2 - 7;
19 print_board(base_y
, base_x
);
21 print_x(base_y
, base_x
+ 1);
22 print_o(base_y
, base_x
+ 6);
23 print_o(base_y
, base_x
+ 11);
24 print_o(base_y
+ 3, base_x
+ 1);
25 print_o(base_y
+ 6, base_x
+ 1);
26 print_o(base_y
+ 3, base_x
+ 6);
27 print_x(base_y
+ 3, base_x
+ 11);
28 print_x(base_y
+ 6, base_x
+ 6);
29 print_x(base_y
+ 6, base_x
+ 11);
33 while (getch() != 'q');