How does the flying general rule affect the opening 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
Rarely as a direct factor, because the central file is usually crowded with soldiers, a cannon and other pieces during the opening, so the two generals are nowhere near facing each other yet. What it does affect quietly is certain trades: a sequence of captures that would leave the central file completely clear is illegal if it leaves the generals facing off, which occasionally rules out an otherwise tempting exchange.
Why it matters more as the position opens up
As central pieces trade off, the file the generals both started on can approach being clear, and the flying general rule starts to actually restrict which capture sequences are legal. It becomes a real factor earlier than most players expect, sometimes by the middlegame rather than only in a bare endgame.
Checking before a central trade
Before initiating a series of captures down the central file, check what the file looks like once all of them are made. If the result is nothing standing between the two generals, part of that sequence is illegal, and you need to find another move for whichever capture would create the position.
Related questions
Can this rule ever cost a player a piece they thought they had won?
Yes, if a planned capture sequence turns out to be partly illegal under the rule; see the flying general rule for the mechanics.
Does it apply to files other than the central one?
No, it only ever applies to whichever file the two generals actually occupy, which is the central file for both at the very start.