Fix suggestion for Chaturanga, renamed into Shatranj
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 26 Feb 2020 00:24:43 +0000 (01:24 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 26 Feb 2020 00:24:43 +0000 (01:24 +0100)
client/src/translations/rules/Shatranj/en.pug [moved from client/src/translations/rules/Chaturanga/en.pug with 100% similarity]
client/src/translations/rules/Shatranj/es.pug [moved from client/src/translations/rules/Chaturanga/es.pug with 100% similarity]
client/src/translations/rules/Shatranj/fr.pug [moved from client/src/translations/rules/Chaturanga/fr.pug with 100% similarity]
client/src/variants/Shatranj.js [moved from client/src/variants/Chaturanga.js with 91% similarity]
server/db/populate.sql

similarity index 91%
rename from client/src/variants/Chaturanga.js
rename to client/src/variants/Shatranj.js
index a1b6228..e2e0c79 100644 (file)
@@ -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;
   }
index 7043996..2accc88 100644 (file)
@@ -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'),