What are the opening principles 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

Four that cover most of it: bring something new into the game every move; defend the central soldier; open a file for a chariot early, because it is the strongest piece and the slowest to activate; and leave advisors and elephants where they are unless there is a concrete reason.

Why the chariot rule matters most

A chariot needs an open file and at the start there are none. Players who develop cannons and horses and forget the chariots find themselves on move fifteen with their two strongest pieces doing nothing. Plan the file before you need the piece.

Why advisors and elephants should not move

They cannot cross the river, so moving them gains no ground at all — it only changes which palace points are covered, and the point you vacate is very often the one the attacker needs. An aimless advisor move is how a lot of mates become possible.

Related questions

How many moves should the opening take?

Roughly the first ten. By then both chariots should have a purpose.

Should I attack immediately?

Only with a real threat and a second piece behind it. One attacker achieves nothing.

Try it on a real board

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