We now have a fully functional tic tac toe game!
Return to GIL.
[...] bool undo_move() { int move_r, move_c; if (last_move != NO_MOVE) { move_r = last_move / 3; move_c = last_move % 3; board[move_r][move_c] = PNONE; last_move = NO_MOVE; x_turn = !x_turn; move_count--; winner = PNONE; show_move(move_r, move_c); show_status(); } GSdisablemenuitem(GAME_MENU, UNDO); return TRUE; } [...]