From 8551bb2313bce61f0f2aa30ed789b9dd28d35dcf Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 6 Jan 2016 20:12:10 +0100 Subject: [PATCH] Add duplicat of Lion (and Flying Dragon) Two more piece types are added: a duplicat of the Lion in the unpromoted series, and a Flying Dragon as its promoted counterpart. This Lion does not suffer from the Lion-trading restriction of Chu Shogi, and can be used as a general piece. Its pictogram is somewhat smaller than that of the Chu Shogi Lion. --- common.h | 8 +- draw.c | 4 +- svg/BlackCub.svg | 172 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ svg/WhiteCub.svg | 171 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 349 insertions(+), 6 deletions(-) create mode 100644 svg/BlackCub.svg create mode 100644 svg/WhiteCub.svg diff --git a/common.h b/common.h index 5da54ce..498bf38 100644 --- a/common.h +++ b/common.h @@ -294,23 +294,23 @@ typedef enum { WhiteFerz, WhiteAlfil, WhiteAngel, WhiteMarshall, WhiteWazir, WhiteMan, WhiteCannon, WhiteNightrider, WhiteCardinal, WhiteDragon, WhiteGrasshopper, WhiteSilver, WhiteFalcon, WhiteLance, WhiteCobra, WhiteUnicorn, WhiteLion, - WhiteWolf, WhiteCamel, WhiteZebra, WhiteWizard, WhiteAmazon, + WhiteWolf, WhiteCamel, WhiteZebra, WhiteWizard, WhiteAmazon, WhiteCub, WhiteTokin, WhiteClaw, WhitePCardinal, WhitePDragon, WhiteCat, WhitePSword, WhiteMonarch, WhiteMother, WhiteNothing, WhitePRook, WhitePDagger, WhiteDolphin, WhiteStag, WhiteHorned, WhiteEagle, WhiteSword, WhiteCrown, WhiteHCrown, WhiteHorse, WhiteDrunk, WhitePBishop, - WhiteGnu, WhiteViking, WhiteIron, WhiteCopper, WhiteTower, + WhiteGnu, WhiteViking, WhiteIron, WhiteCopper, WhiteTower, WhiteFlying, WhiteKing, BlackPawn, BlackKnight, BlackBishop, BlackRook, BlackQueen, BlackFerz, BlackAlfil, BlackAngel, BlackMarshall, BlackWazir, BlackMan, BlackCannon, BlackNightrider, BlackCardinal, BlackDragon, BlackGrasshopper, BlackSilver, BlackFalcon, BlackLance, BlackCobra, BlackUnicorn, BlackLion, - BlackWolf, BlackCamel, BlackZebra, BlackWizard, BlackAmazon, + BlackWolf, BlackCamel, BlackZebra, BlackWizard, BlackAmazon, BlackCub, BlackTokin, BlackClaw, BlackPCardinal, BlackPDragon, BlackCat, BlackPSword, BlackMonarch, BlackMother, BlackNothing, BlackPRook, BlackPDagger, BlackDolphin, BlackStag, BlackHorned, BlackEagle, BlackSword, BlackCrown, BlackHCrown, BlackHorse, BlackDrunk, BlackPBishop, - BlackGnu, BlackViking, BlackIron, BlackCopper, BlackTower, + BlackGnu, BlackViking, BlackIron, BlackCopper, BlackTower, BlackFlying, BlackKing, EmptySquare, DarkSquare, NoRights, // [HGM] gamestate: for castling rights hidden in board[CASTLING] diff --git a/draw.c b/draw.c index a2713ee..81f5392 100644 --- a/draw.c +++ b/draw.c @@ -290,10 +290,10 @@ CreatePNGBoard (char *s, int kind) char *pngPieceNames[] = // must be in same order as internal piece encoding { "Pawn", "Knight", "Bishop", "Rook", "Queen", "Advisor", "Elephant", "Archbishop", "Marshall", "Gold", "Commoner", "Canon", "Nightrider", "CrownedBishop", "CrownedRook", "Crown", "Chancellor", "Hawk", "Lance", "Cobra", "Unicorn", "Lion", - "Wolf", "Camel", "Zebra", "Wizard", "Lance", + "Wolf", "Camel", "Zebra", "Wizard", "Lance", "Cub", "GoldPawn", "Claw", "PromoHorse", "PromoDragon", "GoldLance", "PromoSword", "Prince", "Phoenix", "Kylin", "PromoRook", "PromoHSword", "Dolphin", "Sword", "Leopard", "HSword", "GoldSilver", "Princess", "HCrown", "Knight", "Elephant", "PromoBishop", - "Gnu", "Viking", "Iron", "Copper", "Tower", "King", + "Gnu", "Viking", "Iron", "Copper", "Tower", "Dragon", "King", "Claw", "GoldKnight", "GoldLance", "GoldSilver", NULL }; diff --git a/svg/BlackCub.svg b/svg/BlackCub.svg new file mode 100644 index 0000000..f0b6324 --- /dev/null +++ b/svg/BlackCub.svg @@ -0,0 +1,172 @@ + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/svg/WhiteCub.svg b/svg/WhiteCub.svg new file mode 100644 index 0000000..605b9ff --- /dev/null +++ b/svg/WhiteCub.svg @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 1.7.0.4