Skip to content

Commit d4f744c

Browse files
committed
Update xiangfu piece letters
1 parent d4a2046 commit d4f744c

11 files changed

Lines changed: 65 additions & 83 deletions

File tree

client/chess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type PromotionType = "regular" | "shogi";
2121
export type TimeControlType = "incremental" | "byoyomi";
2222
export type CountingType = "makruk" | "asean";
2323
export type MaterialPointType = "janggi" | "ataxx";
24-
export type BoardMarkType = "alice" | "campmate" | "racingkings" | "kingofthehill" | "shocking" | "melonvariant";
24+
export type BoardMarkType = "alice" | "campmate" | "racingkings" | "kingofthehill";
2525
export type PieceSoundType = "regular" | "atomic" | "shogi";
2626

2727
const handicapKeywords = [ "HC", "Handicap", "Odds" ];

client/variants.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,19 +318,19 @@ interface VariantConfig {
318318
export const VARIANTS: Record<string, Variant> = {
319319
xiangfu: variant({
320320
name: "xiangfu", tooltip: "xiangfu",
321-
startFen: "2rbe4/2can4/2+g1+g4/9/9/9/4+G1+G2/4NAC2/4EBR2[] w - 0 1",
321+
startFen: "2rbm4/2cwn4/2+g1+g4/9/9/9/4+G1+G2/4NWC2/4MBR2[] w - 0 1",
322322
icon: "👊",
323323
boardFamily: "xiangfu9x9", pieceFamily: "xiangfu",
324-
pieceRow: ["+g", "g", "r", "b", "e", "c", "a", "n"],
324+
pieceRow: ["+g", "g", "r", "b", "m", "c", "w", "n"],
325325
pocket: {
326-
roles: ["g", "r", "b", "e", "c", "a", "n"],
326+
roles: ["g", "r", "b", "m", "c", "w", "n"],
327327
captureToHand: true,
328328
},
329329
promotion: { type: "regular", roles: [] },
330330
kingRoles: ["+g"],
331331
alternateStart: {
332332
'': "",
333-
'SwitchedRB': "2bre4/2can4/2+g1+g4/9/9/9/4+G1+G2/4NAC2/4ERB2[] w - 0 1",
333+
'SwitchedRB': "2brm4/2cwn4/2+g1+g4/9/9/9/4+G1+G2/4NWC2/4MRB2[] w - 0 1",
334334
},
335335
}),
336336

client/variantsIni.ts

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -319,43 +319,32 @@ startFen = rnsmksnr/8/pppppppp/8/8/PPPPPPPP/8/RNSKMSNR[] w - - 0 1
319319
capturesToHand = false
320320
twoBoards = true
321321
322-
# MARTIAL ARTS XIANGQI
322+
# Martial arts Xiangqi
323323
[xiangfu]
324-
325-
# Board Parameters
326324
maxFile = 9
327325
maxRank = 9
328-
329-
# Pieces
330-
326+
startFen = 2rbm4/2cwn4/2+g1+g4/9/9/9/4+G1+G2/4NWC2/4MBR2[] w - 0 1
331327
commoner = k
332-
customPiece3 = g:Q1
333328
bishop = b
334329
horse = n
335330
rook = r
336-
customPiece2 = e:nAnD
337331
cannon = c
338-
customPiece1 = a:mBcpB
339-
340-
startFen = 2rbe4/2can4/2+g1+g4/9/9/9/4+G1+G2/4NAC2/4EBR2[] w - 0 1
341-
342-
# Palace
332+
customPiece1 = w:mBcpB
333+
customPiece2 = m:nAnD
334+
customPiece3 = g:Q1
343335
mobilityRegionBlackCommoner = c3 c4 c5 c6 c7 d3 d4 d5 d6 d7 e3 e4 e5 e6 e7 f3 f4 f5 f6 f7 g3 g4 g5 g6 g7
344336
mobilityRegionWhiteCommoner = c3 c4 c5 c6 c7 d3 d4 d5 d6 d7 e3 e4 e5 e6 e7 f3 f4 f5 f6 f7 g3 g4 g5 g6 g7
345-
346-
# Drop Rules
347337
pieceDrops = true
348338
capturesToHand = true
349339
whiteDropRegion = *1 *2
350340
blackDropRegion = *8 *9
351-
352-
# Royal piece rules
353341
extinctionPieceTypes = k
354342
extinctionPseudoRoyal = true
355343
dupleCheck = true
356344
promotedPieceType = g:k
357345
promotionRegionWhite = -
358346
promotionRegionBlack = -
347+
359348
# Jieqi https://www.clubxiangqi.com/uprules.php
360349
[jieqi:xiangqi]
361350
startFen = r~n~b~a~ka~b~n~r~/9/1c~5c~1/p~1p~1p~1p~1p~/9/9/P~1P~1P~1P~1P~/1C~5C~1/9/R~N~B~A~KA~B~N~R~ w - - 0 1

static/docs/xiangfu.md

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,34 @@
55
Xiangfu is a Xiangqi variant created by Eventlesstew for the Variant Design Contest.
66
This essentially aims to be, or was initially going to be, a spiritual successor to Chennis. This variant combines the upfrontness of Marial Arts with the careful aggression of Xiangqi. This is achieved through the Kings always being in the centre and the use of ranging pieces, including the Bishop and the Crossbow.
77

8-
The rules to this variant are the same as Xiangqi, with the following differences:
9-
- Pieces you capture can be dropped within the first two ranks of the board. This is similar to Crazyhouse Xiangqi.
8+
## Rules
9+
10+
- Pieces you capture can be dropped within the first two ranks of the board.
1011
- The palaces on the opposing ends of the board are now combined into a single, large ring, where the Kings are confined to.
11-
- Since each player has two Generals, check and checkmate rules now work like in Spartan Chess. This means that if you have two kings, they can be used on the offensive.
12+
- Since each player has two champions, check and checkmate rules now work like in Spartan Chess. This means that if you have two champions, they can be used on the offensive. You must capture one champion in order to checkmate the other champion, unless you can perform a Duple Checkmate!
13+
14+
## Pieces
15+
16+
### Champion/King (K)
17+
The champions move 1 space in any direction, like the king in Chess. They are the only pieces confined to the Ring.
18+
19+
### Pupil/Commoner (G)
20+
The pupil moves 1 space in any direction, like the king in Chess. Pupil is the unpromoted, non royal version of the champion. When you take an opponent champion it will go to your hand as pupil.
1221

13-
You must capture one general in order to checkmate the other General, unless you can perform a Duple Checkmate!
22+
### Horse (N)
23+
The same as the horse in Xiangqi.
1424

15-
The pieces move as follows:
16-
RETURNING PIECES:
17-
The following pieces in this variant have the same movement as in Xiangqi.
18-
- Horse
19-
- Chariot
20-
- Cannon
25+
### Chariot
26+
The same as the chariot in Xiangqi.
2127

22-
GENERALS
23-
The Generals move 1 space in any direction, like the King from Chess. They are the only pieces confined to the Ring.
24-
Unlike in regular Xiangqi, the opposing Kings can face eachother.
28+
### Cannon
29+
The same as the cannon in Xiangqi.
2530

26-
ELEPHANT
27-
The Elephant moves two spaces diagonally, but can move freely since there is no river.
28-
...Yeah, that's the only difference the Elephant has in this variant.
31+
### Mahout/Elephant rider (M)
32+
The Mahout moves one or two spaces diagonally.
2933

30-
BISHOP
31-
A diagonal variant of the Chariot, the Bishop moves any number of spaces diagonally. This is the same piece as the Bishop from Chess.
34+
### Bishop (B)
35+
The same as the bishop in Chess.
3236

33-
Crossbow
34-
A diagonal variant of the Cannon, The Crossbow moves any number of steps diagonally, but must jump over a piece in order to capture. For those who know, this is essentially the Copper Cannon from Cannon Shogi.
37+
### Crossbow (W)
38+
A diagonal variant of the cannon, The crossbow moves any number of steps diagonally, but must jump over a piece in order to capture.

static/piece-css/xiangfu/eventhanzi.css

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)