From: Benjamin Auder Date: Fri, 26 Feb 2021 08:15:43 +0000 (+0100) Subject: Rename connect --> Align4 X-Git-Url: https://git.auder.net/pieces/Cwda/common.css?a=commitdiff_plain;h=f10a644e185d7c467d280d4a0deb2905df038dd3;p=vchess.git Rename connect --> Align4 --- diff --git a/client/src/translations/rules/Connect/en.pug b/client/src/translations/rules/Align4/en.pug similarity index 88% rename from client/src/translations/rules/Connect/en.pug rename to client/src/translations/rules/Align4/en.pug index 348c81d0..ab2315aa 100644 --- a/client/src/translations/rules/Connect/en.pug +++ b/client/src/translations/rules/Align4/en.pug @@ -13,4 +13,4 @@ figure.diagram-container p White wins by checkmating the enemy king. -p This variant was invented by madi (2021) on vchess Discord. +p This variant was invented by Fynmorph (2021). diff --git a/client/src/translations/rules/Connect/es.pug b/client/src/translations/rules/Align4/es.pug similarity index 89% rename from client/src/translations/rules/Connect/es.pug rename to client/src/translations/rules/Align4/es.pug index 582b3bd8..cb12a461 100644 --- a/client/src/translations/rules/Connect/es.pug +++ b/client/src/translations/rules/Align4/es.pug @@ -16,4 +16,4 @@ figure.diagram-container p Las blancas ganan matando al rey contrario. -P Esta variante fue inventada por madi (2021) en el Discord vchess. +P Esta variante fue inventada por Fynmorph (2021). diff --git a/client/src/translations/rules/Connect/fr.pug b/client/src/translations/rules/Align4/fr.pug similarity index 88% rename from client/src/translations/rules/Connect/fr.pug rename to client/src/translations/rules/Align4/fr.pug index fc31a9bd..240e1506 100644 --- a/client/src/translations/rules/Connect/fr.pug +++ b/client/src/translations/rules/Align4/fr.pug @@ -16,4 +16,4 @@ figure.diagram-container p Les blancs gagnent en matant le roi adverse. -p Cette variante a été inventée par madi (2021) sur le Discord vchess. +p Cette variante a été inventée par Fynmorph (2021). diff --git a/client/src/translations/variants/en.pug b/client/src/translations/variants/en.pug index 672e5a53..dc9ce6e7 100644 --- a/client/src/translations/variants/en.pug +++ b/client/src/translations/variants/en.pug @@ -459,10 +459,10 @@ p. - var varlist = [ "Alice", + "Align4", "Ambiguous", "Bario", "Bicolour", - "Connect", "Convert", "Evolution", "Forward", diff --git a/client/src/translations/variants/es.pug b/client/src/translations/variants/es.pug index 2435c567..d87eb234 100644 --- a/client/src/translations/variants/es.pug +++ b/client/src/translations/variants/es.pug @@ -469,10 +469,10 @@ p. - var varlist = [ "Alice", + "Align4", "Ambiguous", "Bario", "Bicolour", - "Connect", "Convert", "Evolution", "Forward", diff --git a/client/src/translations/variants/fr.pug b/client/src/translations/variants/fr.pug index 6eb7776e..996f823f 100644 --- a/client/src/translations/variants/fr.pug +++ b/client/src/translations/variants/fr.pug @@ -467,10 +467,10 @@ p. - var varlist = [ "Alice", + "Align4", "Ambiguous", "Bario", "Bicolour", - "Connect", "Convert", "Evolution", "Forward", diff --git a/client/src/variants/Connect.js b/client/src/variants/Align4.js similarity index 99% rename from client/src/variants/Connect.js rename to client/src/variants/Align4.js index 0e205c8e..fb438717 100644 --- a/client/src/variants/Connect.js +++ b/client/src/variants/Align4.js @@ -1,6 +1,6 @@ import { ChessRules, Move, PiPo } from "@/base_rules"; -export class ConnectRules extends ChessRules { +export class Align4Rules extends ChessRules { static GenRandInitFen(randomness) { const baseFen = ChessRules.GenRandInitFen(Math.min(randomness, 1)); diff --git a/server/db/populate.sql b/server/db/populate.sql index 3208b594..82600944 100644 --- a/server/db/populate.sql +++ b/server/db/populate.sql @@ -14,6 +14,7 @@ insert or ignore into Variants (name, description) values ('Absorption', 'Absorb powers'), ('Alapo', 'Geometric Chess'), ('Alice', 'Both sides of the mirror'), + ('Align4', 'Align four pawns'), ('Allmate1', 'Mate any piece (v1)'), ('Allmate2', 'Mate any piece (v2)'), ('Ambiguous', 'Play opponent''s pieces'), @@ -47,7 +48,6 @@ insert or ignore into Variants (name, description) values ('Circular', 'Run forward'), ('Clorange', 'A Clockwork Orange'), ('Colorbound', 'The colorbound clobberers'), - ('Connect', 'Align four pawns'), ('Convert', 'Convert enemy pieces'), ('Coregal', 'Two royal pieces'), ('Coronation', 'Long live the Queen'),