93949596979899100101102103
} // destroy the pieces int size = _destroyed.size(); for (int ii = 0; ii < size; ii++) { SegmentInfo si = _destroyed.get(ii); board.applyOp(si.dir, si.x, si.y, si.len, destroyOp); } return _destroyed; }
110111112113114115116117118
{ _lengthOp.reset(); board.applyOp(dir, x, y, _lengthOp); int len = _lengthOp.getLength(); if (len >= _logic.getMinimumLength()) { _destroyed.add(new SegmentInfo(dir, x, y, len)); } return len; }