From a4eca0dccda8c2cb8cc09bb0b3abdfff06214719 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Wed, 26 Feb 2020 01:24:43 +0100
Subject: [PATCH] Fix suggestion for Chaturanga, renamed into Shatranj

---
 .../src/translations/rules/{Chaturanga => Shatranj}/en.pug   | 0
 .../src/translations/rules/{Chaturanga => Shatranj}/es.pug   | 0
 .../src/translations/rules/{Chaturanga => Shatranj}/fr.pug   | 0
 client/src/variants/{Chaturanga.js => Shatranj.js}           | 5 ++++-
 server/db/populate.sql                                       | 2 +-
 5 files changed, 5 insertions(+), 2 deletions(-)
 rename client/src/translations/rules/{Chaturanga => Shatranj}/en.pug (100%)
 rename client/src/translations/rules/{Chaturanga => Shatranj}/es.pug (100%)
 rename client/src/translations/rules/{Chaturanga => Shatranj}/fr.pug (100%)
 rename client/src/variants/{Chaturanga.js => Shatranj.js} (91%)

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'),
-- 
2.44.0