---
title: "Can a Chess Engine Play Xiangqi? · Xiangqi Master"
description: "Not directly. The rules, board and evaluation are different enough to need a dedicated engine, though the search techniques are shared."
url: https://xiangqimaster.com/blog/can-chess-engines-play-xiangqi
updated: 2026-09-22
source: Xiangqi Master (https://xiangqimaster.com)
license: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
---

# Can chess engines play 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
>
> **Not directly.** A chess engine encodes chess rules, a 64-square board and a chess-specific evaluation. Xiangqi needs its own engine — different board, different movement, screen logic for the cannon, and repetition rules that have no chess analogue. The **search techniques transfer**; the program does not.

## What is shared

Alpha-beta search, transposition tables, iterative deepening, move ordering, and increasingly neural evaluation. A strong engine programmer moves between the games easily; the code does not.

## What is genuinely harder in xiangqi

The repetition rules. Perpetual check and perpetual chase are adjudicated rather than drawn, and correctly deciding who must vary requires understanding what each side is threatening — not just whether a position repeated. It is why many online implementations simplify it.

## Related questions

Are xiangqi engines as strong as chess engines?

Relative to human players, yes — well beyond the best humans for years.

Is xiangqi solved?

No, and it will not be. Only small endgame tablebases are complete.

## Related xiangqi resources

Analyse your games

Take any position apart with engine support

Perpetual check and chase

Repetition is adjudicated, not automatically drawn

Editorial standards

How these answers are checked

## Try it on a real board

Reading an answer is one thing; playing it is another. Free, instant, and nothing to install.
