- cell = loa_board_remove_piece (board, x2, y2);
- if (cell == LOA_CELL_EMPTY) {
- move.is_capture = FALSE;
- } else {
- assert (cell != board->player);
- move.is_capture = TRUE;
- }
+ cell = loa_board_remove_piece (board, move->x2, move->y2);
+ assert (cell == LOA_CELL_EMPTY ||
+ (move->is_capture && cell != board->player));