]> git.cworth.org Git - dvonn/blobdiff - dvonn-board.c
Don't let one player place the opponent's pieces
[dvonn] / dvonn-board.c
index 5b7c106c311909b30a47d96dc7ff3c6e7ecaf418..f8f9b93843556f3e20b482418c7ca75f768f28d2 100644 (file)
@@ -231,9 +231,12 @@ dvonn_board_place (dvonn_board_t *board,
 
     board->moves++;
 
+    dvonn_board_next_player (board);
+
     if (board->moves == 49) {
        board->phase = DVONN_PHASE_MOVEMENT;
        board->moves = 0;
+       board->player = DVONN_PLAYER_WHITE;
     }
 
     return TRUE;