From: Benjamin Auder Date: Sat, 26 Dec 2020 18:24:49 +0000 (+0100) Subject: Remove Lostqueen - bad idea, probably X-Git-Url: https://git.auder.net/variants/%24%7Bvname%7D/%7B%7B%20targetUrl%20%7D%7D?a=commitdiff_plain;h=73d6f37abacf5444940281bd14608d04a198d6eb;p=vchess.git Remove Lostqueen - bad idea, probably --- diff --git a/client/src/translations/en.js b/client/src/translations/en.js index 9977812a..fbcad341 100644 --- a/client/src/translations/en.js +++ b/client/src/translations/en.js @@ -206,7 +206,6 @@ export const translations = { "Four new pieces": "Four new pieces", "In the shadow": "In the shadow", "Interweaved colorbound teams": "Interweaved colorbound teams", - "Get rid of the queen": "Get rid of the queen", "Get strong at self-mate": "Get strong at self-mate", "Give three checks": "Give three checks", "Harassed kings": "Harassed kings", diff --git a/client/src/translations/es.js b/client/src/translations/es.js index 599a2702..22b20a91 100644 --- a/client/src/translations/es.js +++ b/client/src/translations/es.js @@ -206,7 +206,6 @@ export const translations = { "Four new pieces": "Quatro nuevas piezas", "In the shadow": "En la sombra", "Interweaved colorbound teams": "Equipos unicolores entrelazados", - "Get rid of the queen": "Deshacerse de la dama", "Get strong at self-mate": "Progreso en mates asistidos", "Give three checks": "Dar tres jaques", "Harassed kings": "Reyes acosados", diff --git a/client/src/translations/fr.js b/client/src/translations/fr.js index eb6f9c71..e3e53795 100644 --- a/client/src/translations/fr.js +++ b/client/src/translations/fr.js @@ -206,7 +206,6 @@ export const translations = { "Four new pieces": "Quatre nouvelles pièces", "In the shadow": "Dans l'ombre", "Interweaved colorbound teams": "Équipes unicolores entremêlées", - "Get rid of the queen": "Débarrassez-vous de la dame", "Get strong at self-mate": "Progressez en mats aidés", "Give three checks": "Donnez trois échecs", "Harassed kings": "Rois harcelés", diff --git a/client/src/translations/rules/Lostqueen/en.pug b/client/src/translations/rules/Lostqueen/en.pug deleted file mode 100644 index c3a59204..00000000 --- a/client/src/translations/rules/Lostqueen/en.pug +++ /dev/null @@ -1,4 +0,0 @@ -p.boxed - | The goal is to lose the queen. - -p TODO diff --git a/client/src/translations/rules/Lostqueen/es.pug b/client/src/translations/rules/Lostqueen/es.pug deleted file mode 100644 index 254e04c7..00000000 --- a/client/src/translations/rules/Lostqueen/es.pug +++ /dev/null @@ -1,4 +0,0 @@ -p.boxed - | El objetivo es perder a la dama. - -p TODO diff --git a/client/src/translations/rules/Lostqueen/fr.pug b/client/src/translations/rules/Lostqueen/fr.pug deleted file mode 100644 index 46aefd1a..00000000 --- a/client/src/translations/rules/Lostqueen/fr.pug +++ /dev/null @@ -1,4 +0,0 @@ -p.boxed - | L'objectif est de perdre la dame. - -p TODO diff --git a/client/src/translations/variants/en.pug b/client/src/translations/variants/en.pug index 9ee45a87..156b4b55 100644 --- a/client/src/translations/variants/en.pug +++ b/client/src/translations/variants/en.pug @@ -396,7 +396,6 @@ p. "Freecapture", "Gridolina", "Hamilton", - "Lostqueen", "Magnetic", "Parachute", "Takenmake", diff --git a/client/src/translations/variants/es.pug b/client/src/translations/variants/es.pug index d43de3be..890c081b 100644 --- a/client/src/translations/variants/es.pug +++ b/client/src/translations/variants/es.pug @@ -408,7 +408,6 @@ p. "Gridolina", "Hamilton", "Magnetic", - "Lostqueen", "Parachute", "Takenmake", "Titan", diff --git a/client/src/translations/variants/fr.pug b/client/src/translations/variants/fr.pug index b739f60d..59ba797f 100644 --- a/client/src/translations/variants/fr.pug +++ b/client/src/translations/variants/fr.pug @@ -406,7 +406,6 @@ p. "Freecapture", "Gridolina", "Hamilton", - "Lostqueen", "Magnetic", "Parachute", "Takenmake", diff --git a/client/src/variants/Lostqueen.js b/client/src/variants/Lostqueen.js deleted file mode 100644 index 3b640082..00000000 --- a/client/src/variants/Lostqueen.js +++ /dev/null @@ -1,36 +0,0 @@ -import { ChessRules } from "@/base_rules"; - -export class LostqueenRules extends ChessRules { - - // The king can move like a knight: - getPotentialKingMoves(sq) { - return ( - super.getPotentialKingMoves(sq).concat( - super.getSlideNJumpMoves(sq, ChessRules.steps[V.KNIGHT], "oneStep")) - ); - } - - // Goal is to lose the queen (or be checkmated): - getCurrentScore() { - // If my queen disappeared, I win - const color = this.turn; - let haveQueen = false; - outerLoop: for (let i=0; i