The lance can move any number of empty squares along a straight line, limited only by the edge of the board. If an opposing piece intervenes, it may be captured by moving to that square and removing it from the board. A ranging piece must stop where it captures, and cannot bypass a piece that is in its way. If a friendly piece intervenes, the moving piece is limited to a distance that stops short of the intervening piece; if the friendly piece is adjacent, it cannot move in that direction at all.