-
Notifications
You must be signed in to change notification settings - Fork 1
/
rule.html
114 lines (113 loc) · 6.63 KB
/
rule.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html>
<head>
<title>Rules</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<nav>
<div id="navleft" class="centered">
JSXiangqi Game
</div>
<div class="topdiv">
<a class="topmenu" href="./index.html">Play Game</a>
<a class="topmenu" href="./about.html">About</a>
</div>
</nav>
<!-- rule content -->
<div class="content">
<h1>Pieces and Move | How to Play Xiangqi</h1>
<!-- soldier / pawn -->
<div>
<h2>Soldier</h2>
<div>
The soldier (兵, 卒) in xiangqi is a piece that can move and capture one position
forward (not diagonally) until it crosses the river, which divides the board
into two halves. Once it crosses the river, it can also move and capture one
position horizontally, but not backward. A soldier cannot promote if it reaches
the end of the board. A soldier is worth 1 point before the river, and 2 points
after it has crossed the river. The soldier is also called the pawn in some versions
of chess.
</div>
</div>
<!-- horse / knight -->
<div>
<h2>Horse</h2>
<div>
The horse (马, 馬) in xiangqi is similar to the knight in chess, but not exactly the same.
It moves by first going two positions in one direction (horizontally or vertically),
then one position in another direction (diagonally). However, unlike the knight,
the horse cannot jump over other pieces. If there is a piece adjacent to the horse along its path,
it blocks the horse’s movement. This is called "blocking his leg" or "pinning the horse".
The horse is worth 4 points in the opening and midgame, and 4.5 points in the endgame,
because it can be easily blocked in the opening but not in the endgame.
</div>
</div>
<!-- chariot / rock -->
<div>
<h2>Chariot</h2>
<div>
The chariot (车, 車) in xiangqi is the same as the rook in chess. It can move and capture
orthogonally (horizontally or vertically) as far as there are open positions.
It cannot jump over other pieces. The chariot is the most powerful piece in xiangqi,
and it is worth 9 points. The chariot is also very effective when coordinating with
other pieces, such as the horse and the cannon. However, the chariot should not be sent
into dangerous positions where it can be easily attacked by the opponent.
</div>
</div>
<!-- advisor -->
<div>
<h2>Advisor</h2>
<div>
The advisor (士, 仕) in xiangqi is a defensive piece that can only move diagonally one position
at a time. There are two advisors, one on each side of the general. They cannot leave
the palace, which is a 3x3 area at the center of the back rank. The advisor is worth 2
points. The advisor is mainly used to shield the general from attacks, especially from
the cannon1. The advisor is also called the guard in some versions of chess.
</div>
</div>
<!-- elephant / bishop -->
<div>
<h2>Elephant</h2>
<div>
The elephant (象, 相) in xiangqi is a piece that can move diagonally exactly two positions. It
cannot jump over other pieces, so if there is a piece blocking its path, it cannot
complete its move. It can move and capture to an empty or occupied point. The elephant
cannot cross the river, which divides the board into two halves. The elephant is worth 2
points. The elephant is mainly used to protect the general and the advisors, and to prevent
the opponent's horse from checking the general. The elephant is also called the prime minister
in some versions of chess.
</div>
</div>
<!-- cannon -->
<div>
<h2>Cannon</h2>
<div>
The cannon (炮, 砲) in xiangqi is a unique piece that can move and capture differently. It can move
as many positions as are open horizontally or vertically, like the chariot. However, to
capture an opponent's piece, it must jump over exactly one piece (the cannon mount) along its
path. The cannon mount can be a piece from either army. The cannon is worth 4.5 points in the
opening and 4 points in the endgame, because there are more mounts available in the opening than
in the endgame. The cannon is a very powerful piece that can threaten the enemy’s general and
advisors from a distance. The cannon is also called the pao, which is a transliteration of its
Chinese name.
</div>
</div>
<!-- general -->
<div>
<h2>General</h2>
<div>
The general (将, 帅) in xiangqi is the most important piece, as the goal of the game is to checkmate
the opponent's general. The general can move and capture one position at a time, horizontally
or vertically, but it is restricted to moving within the palace, which is a 3x3 area at the
center of the back rank. The general is also subject to a special rule that prohibits it from
facing the enemy general directly along the same file with no intervening pieces. If that happens,
the flying general move may be executed, in which the general to move may cross the board to capture
the opponent general. The general can also protect other pieces (usually chariot or soldier) to check
the opponent.
</div>
</div>
</div>
</body>
</html>