What is a desperado piece in xiangqi?
These answers restate the rules implemented by our open-source engine, which follows the WXF laws and is regression-tested against the official 110-diagram repetition casebook. Where an answer refers to a specific position, that position lives on the linked reference page, where the build verifies it against the engine before publishing.
Direct answer
A piece that is already going to be captured, so instead of doing nothing it captures something first. Since the piece was lost anyway, using its last move to take a pawn, or even a more valuable piece if one is reachable, converts a pure loss into an even trade, or better.
Recognising the situation
The pattern shows up whenever a piece is attacked and has no safe square, but does have a capture available before it goes. Check this before simply accepting the loss as a straight material deficit: the doomed piece may still have one useful job left.
Using it defensively too
The same idea works when a piece of yours is trapped and about to fall: rather than moving it somewhere equally lost, look at what it can take on its way, and whether that capture creates a problem for the opponent that outweighs the material.
Related questions
Does this only apply to attacking pieces?
No, any piece that is lost regardless of what it does next can be used this way, offence or defence.
Is a desperado capture always worth it?
Check what it achieves concretely. Grabbing a worthless pawn out of habit is not the same as disrupting the opponent's plan.