xiangqii
Version:
xiangqi-engine written in pure js
205 lines (202 loc) • 3.79 kB
JavaScript
const pieces = {
// 1. Kings x 2
"blue-king": {
id: "blue-king",
type: "king",
title: "Blue King",
position: 15,
},
"red-king": {
id: "red-king",
type: "king",
title: "Red King",
position: 105,
},
// 2. Rook x 4
"blue-rook-1": {
id: "blue-rook-1",
type: "rook",
title: "Blue Rook",
position: 11,
},
"blue-rook-2": {
id: "blue-rook-2",
type: "rook",
title: "Blue Rook",
position: 19,
},
"red-rook-1": {
id: "red-rook-1",
type: "rook",
title: "Red Rook",
position: 101,
},
"red-rook-2": {
id: "red-rook-2",
type: "rook",
title: "Red Rook",
position: 109,
},
// 3. Cannon x 4
"blue-cannon-1": {
id: "blue-cannon-1",
type: "cannon",
title: "Blue Cannon",
position: 32,
},
"blue-cannon-2": {
id: "blue-cannon-2",
type: "cannon",
title: "Blue Cannon",
position: 38,
},
"red-cannon-1": {
id: "red-cannon-1",
type: "cannon",
title: "Red Cannon",
position: 82,
},
"red-cannon-2": {
id: "red-cannon-2",
type: "cannon",
title: "Red Cannon",
position: 86,
},
// 4. Knight x 4
"blue-knight-1": {
id: "blue-knight-1",
type: "knight",
title: "Blue Knight",
position: 12,
},
"blue-knight-2": {
id: "blue-knight-2",
type: "knight",
title: "Blue Knight",
position: 18,
},
"red-knight-1": {
id: "red-knight-1",
type: "knight",
title: "Red Knight",
position: 102,
},
"red-knight-2": {
id: "red-knight-2",
type: "knight",
title: "Red Knight",
position: 108,
},
// 5. Counsellor x 4
"blue-counsellor-1": {
id: "blue-counsellor-1",
type: "counsellor",
title: "Blue Counsellor",
position: 14,
},
"blue-counsellor-2": {
id: "blue-counsellor-2",
type: "counsellor",
title: "Blue Counsellor",
position: 16,
},
"red-counsellor-1": {
id: "red-counsellor-1",
type: "counsellor",
title: "Red Counsellor",
position: 104,
},
"red-counsellor-2": {
id: "red-counsellor-2",
type: "counsellor",
title: "Red Counsellor",
position: 106,
},
// 5. Minister x 4
"blue-minister-1": {
id: "blue-minister-1",
type: "minister",
title: "Blue Minister",
position: 13,
},
"blue-minister-2": {
id: "blue-minister-2",
type: "minister",
title: "Blue Minister",
position: 17,
},
"red-minister-1": {
id: "red-minister-1",
type: "minister",
title: "Red Minister",
position: 103,
},
"red-minister-2": {
id: "red-minister-2",
type: "minister",
title: "Red Minister",
position: 107,
},
// 5. Pawn x 10
"blue-pawn-1": {
id: "blue-pawn-1",
type: "pawn",
title: "Blue Pawn",
position: 41,
},
"blue-pawn-2": {
id: "blue-pawn-2",
type: "pawn",
title: "Blue Pawn",
position: 43,
},
"blue-pawn-3": {
id: "blue-pawn-3",
type: "pawn",
title: "Blue Pawn",
position: 45,
},
"blue-pawn-4": {
id: "blue-pawn-4",
type: "pawn",
title: "Blue Pawn",
position: 47,
},
"blue-pawn-5": {
id: "blue-pawn-5",
type: "pawn",
title: "Blue Pawn",
position: 49,
},
"red-pawn-1": {
id: "red-pawn-1",
type: "pawn",
title: "Red Pawn",
position: 71,
},
"red-pawn-2": {
id: "red-pawn-2",
type: "pawn",
title: "Red Pawn",
position: 73,
},
"red-pawn-3": {
id: "red-pawn-3",
type: "pawn",
title: "Red Pawn",
position: 75,
},
"red-pawn-4": {
id: "red-pawn-4",
type: "pawn",
title: "Red Pawn",
position: 77,
},
"red-pawn-5": {
id: "red-pawn-5",
type: "pawn",
title: "Red Pawn",
position: 79,
},
};
module.exports.pieces = pieces;