]> git.cworth.org Git - ttt/commitdiff
A _working_ draft of ttt_board_is_won
authorKevin Worth <kevin@theworths.org>
Wed, 14 Dec 2005 05:09:45 +0000 (05:09 +0000)
committerKevin Worth <kevin@theworths.org>
Wed, 14 Dec 2005 05:09:45 +0000 (05:09 +0000)
src/ttt-board.c

index dfddf35ec168297011979468231596785870dafd..c6d36f0b42ba161c6070b01a8c7ef5f8e16826c0 100644 (file)
@@ -111,8 +111,10 @@ ttt_error_t ttt_board_make_move (ttt_board_t *board, int move)
        board->current_player = TTT_CELL_O;     
     }
     else
+    {
+       ttt_board_is_won (board);
        board->current_player = TTT_CELL_X;
-    
+    }
     return TTT_ERROR_NONE;
 }