else
board->cells[x][y].type = DVONN_CELL_WHITE;
+ board->cells[x][y].height = 1;
+
board->moves++;
if (board->moves == 49) {
if (! dvonn_board_move_legal (board, x1, y1, x2, y2, error))
return FALSE;
- /* XXX: Need to execute the move here. */
+ board->cells[x2][y2].height += board->cells[x1][y1].height;
+ board->cells[x2][y2].type = board->cells[x1][y1].type;
+
+ board->cells[x1][y1].type = DVONN_CELL_EMPTY;
+ board->cells[x1][y1].height = 0;
dvonn_board_next_player (board);