Anqi (Dark Chess)

Play online with AI or friends; piece ranking table and full rules included.

🀄 Click board to start game
Player Faction
Undecided
AI Faction
Undecided
Red Active Pieces (General, Advisor, Elephant, Chariot, Horse, Cannon, Soldier) 16/16
Black Active Pieces (General, Advisor, Elephant, Chariot, Horse, Cannon, Soldier) 16/16
Sound Effects
No actions recorded

Anqi Piece Ranking

Rank Red Black Per Side Special Rule
7 帥 將 1 Highest, but cannot capture Soldiers
6 仕 士 2
5 相 象 2
4 俥 車 2
3 傌 馬 2
2 炮 包 2 Captures any piece by jumping exactly one piece
1 兵 卒 5 Lowest, but can capture the General

Anqi (Dark Chess) Rules & Guide

1. Flipping & Factions (Start & Flip)

32 pieces are shuffled face-down on a 4x8 board. The first flipped piece establishes the player's color (Red or Black). The other player automatically assumes the opposing faction. Click face-down pieces to flip them.

2. Movement & Capture Hierarchy

Revealed pieces move one square orthogonally (Up, Down, Left, Right). Higher or equal ranks capture lower ranks: General > Advisor > Elephant > Chariot > Horse > Soldier.

3. Soldier Beats General & Cannon Jumps

Soldiers beat Generals, but Generals cannot capture Soldiers! Cannons move 1 step when not capturing, but to capture, they MUST jump over exactly one intermediate piece (friend, foe, or face-down) at any orthogonal distance.

4. AI & P2P Multiplayer

Features 2-Player mode, AI self-play, and 3 AI difficulties. Hard AI uses 2-ply Minimax depth search with Alpha-Beta pruning and hidden-piece probabilistic valuation.


🌐 Online Multiplayer (P2P) Guide

① Host a Room (Host Player)

Switch mode to "Online 2-Player (P2P)". The system automatically generates your Peer ID. Share this code with your friend. The first piece flipped during the game determines each player's faction.

② Join or Spectate

Enter your friend's Peer ID. Click "Battle" to play against them, or click "Spectate" to watch the live match with real-time move sync and chat without interfering.

③ Undo & Rematch Requests

In P2P matches, clicking "Undo" or "Restart" sends a confirmation request to your opponent. The action only executes if agreed by both players.

④ In-Game Chat & Resignation

Use the live chat sidebar to communicate with opponents and spectators. Click "Resign" anytime to concede the match gracefully.

FAQ

What is the piece ranking in Anqi?

From highest to lowest: General > Advisor > Elephant > Chariot > Horse > Cannon > Soldier. A piece captures pieces of equal or lower rank, except that the Soldier can capture the General and the General cannot capture the Soldier.

How does the Cannon capture?

The Cannon moves one square normally. To capture it jumps along a line over exactly one piece (red, black or face-down) and can take an enemy piece of any rank at any distance.

How are sides decided?

All 32 pieces start face down. The color of the first piece flipped becomes that player’s side, and the opponent takes the other color.

How do you lose in Anqi?

You lose when all your pieces are captured, or when it is your turn and you have no legal move or flip.