What is the difference between checkmate and stalemate?

With no legal move, the side to move is checkmated if in check and stalemated otherwise. In Xiangqi that side loses in either case.

In this guide
The red chariot checks Black, and Black has no legal reply. This is checkmate.

Why Black cannot move in the diagram

The lower red chariot checks down the center and covers the point in front of Black’s general. The other chariot covers the left exit. The right exit would put Black’s general face to face with Red’s.

Check every piece for stalemate

A general can be boxed in and the game can still continue. To call stalemate, look for a legal move with any of the remaining pieces.

An example without check

Give Black only a general on D9, with Red’s general on F0 and chariot on E8. With Black to move, the chariot covers both D8 and E9 without checking D9. Black is stalemated and loses. Coordinates run A–I from Red’s left and 0–9 from Red’s back rank.

Check is only the beginning

In the two-chariot exercise, find a checking move and then inspect each escape point. A move is checkmate only when the opponent has no legal answer.

Put it into practice

Sources

WXF · World Xiangqi Rules