From: Benjamin Auder Date: Wed, 26 Feb 2020 00:24:43 +0000 (+0100) Subject: Fix suggestion for Chaturanga, renamed into Shatranj X-Git-Url: https://git.auder.net/images/doc/html/current/pieces/cq.svg?a=commitdiff_plain;h=a4eca0dccda8c2cb8cc09bb0b3abdfff06214719;p=vchess.git Fix suggestion for Chaturanga, renamed into Shatranj --- diff --git a/client/src/translations/rules/Chaturanga/en.pug b/client/src/translations/rules/Shatranj/en.pug similarity index 100% rename from client/src/translations/rules/Chaturanga/en.pug rename to client/src/translations/rules/Shatranj/en.pug diff --git a/client/src/translations/rules/Chaturanga/es.pug b/client/src/translations/rules/Shatranj/es.pug similarity index 100% rename from client/src/translations/rules/Chaturanga/es.pug rename to client/src/translations/rules/Shatranj/es.pug diff --git a/client/src/translations/rules/Chaturanga/fr.pug b/client/src/translations/rules/Shatranj/fr.pug similarity index 100% rename from client/src/translations/rules/Chaturanga/fr.pug rename to client/src/translations/rules/Shatranj/fr.pug diff --git a/client/src/variants/Chaturanga.js b/client/src/variants/Shatranj.js similarity index 91% rename from client/src/variants/Chaturanga.js rename to client/src/variants/Shatranj.js index a1b62284..e2e0c793 100644 --- a/client/src/variants/Chaturanga.js +++ b/client/src/variants/Shatranj.js @@ -1,6 +1,9 @@ +// TODO: bishop OK, but queen should move vertical/horizontal and capture diagonally. +// ==> then the pawn promotion is a real promotion (enhancement). + import { ChessRules } from "@/base_rules"; -export const VariantRules = class ChaturangaRules extends ChessRules { +export const VariantRules = class ShatranjRules extends ChessRules { static get HasFlags() { return false; } diff --git a/server/db/populate.sql b/server/db/populate.sql index 7043996f..2accc888 100644 --- a/server/db/populate.sql +++ b/server/db/populate.sql @@ -10,7 +10,6 @@ insert or ignore into Variants (name,description) values ('Baroque', 'Exotic captures'), ('Benedict', 'Change colors'), ('Berolina', 'Pawns move diagonally'), - ('Chaturanga', 'Ancient rules'), ('Checkered', 'Shared pieces'), ('Check3', 'Give three checks'), ('Chess960', 'Standard rules'), @@ -29,6 +28,7 @@ insert or ignore into Variants (name,description) values ('Rifle', 'Shoot pieces'), ('Royalrace', 'King crosses the board'), ('Recycle', 'Reuse pieces'), + ('Shatranj', 'Ancient rules'), ('Suction', 'Attract opposite king'), ('Upsidedown', 'Board upside down'), ('Wildebeest', 'Balanced sliders & leapers'),