Custom Xiangqi Endgame

Red to play

Build the Ending on an Empty Board

The endgame challenge is a catalog of studies. Analyze is where a full score belongs. This page starts empty, so you choose where the chariots, cannons, and pawns sit, and which side moves. When the board is legal, play it here against multiple AI levels, or start analysis if you want the engine lines.

Place the shape, then choose the turn

The board opens empty. Take a piece from the tray and drop it on an intersection. Tap the same point to replace it, or choose Remove and tap a piece you do not want. Both generals must stay in the palace, advisors stay on the palace diagonals, and elephants cannot cross the river. Extra pieces and facing generals are listed one by one.

Endgames are often not red to move. After the pieces are down, set the side to move. If you sit on the other color, the AI moves first once you play. The sidebar strength controls replies and hints. Analysis on this site stays at full strength and is a separate step.

To read the engine before you play, choose Analyze. The three lines stay on this page. A complete game score still belongs on the analyze page. This one is only the ending you built.

A custom xiangqi endgame placed on an empty board

You choose the shape

A chariot-and-cannon ending, a single chariot against advisors and elephants, or a diagram from a book can start from nothing. You do not have to finish a full game first, and the study does not have to be in the catalog.

Empty startDrop on pointsChoose the turn
Playing a custom xiangqi endgame against AI

Play it on the same page

When the position is legal, play this board. Hints, undo, and replay stay here, and the AI answers at the strength you picked. After the game you can edit the pieces without returning to the opening array.

Multiple AI levelsHint and undoEdit again
A xiangqi FEN placed onto the custom endgame board

Paste a FEN if you already have one

Copy a position from a database and place it from the FEN field. Text that cannot be read stays off the board and the page says why. Full score import stays on the analyze page.

Paste a FENIllegal boards explainedSaved on this device

Questions

How is this different from the endgame challenge and from Analyze?

The endgame challenge is a set of mating studies with a solution to find. Analyze is for a pasted score or FEN and three full-strength lines. This page starts empty so you can build an ending and play it against multiple AI levels, or start analysis on the same board.

Can I build a position on a phone without an account?

Yes. Open this page in the browser, place pieces, and play. There is no account and no app. A position in progress stays on this device. Clearing site data removes it, and there is no account to restore it from.

Why does Play this board do nothing?

Play accepts only a legal position. A missing general, a general outside the palace, an elephant across the river, too many of one piece, facing generals, or a side already in check when it is not that side's turn will stop the button. Fix the item the page lists.

I want to sit black while red moves first. How do I set that?

Place the pieces, then set the side to move to red. After you start the game, choose black in the sidebar. The AI moves first. Hints follow the strength you selected, not a fixed top level.

Will a finished game wipe my position back to the opening?

A new game returns to the board you confirmed, not to the full starting array. Edit board returns to placement. Empty board clears every piece.