"Two royal pieces": "Two royal pieces",
"Unidentified pieces": "Unidentified pieces",
"Walk on a graph": "Walk on a graph",
- "White move twice": "White move twice"
+ "White move twice": "White move twice",
+ "Win by castling long": "Win by castling long"
};
"Two royal pieces": "Dos piezas reales",
"Unidentified pieces": "Piezas no identificadas",
"Walk on a graph": "Camino en un gráfico",
- "White move twice": "Las blancas juegan dos veces"
+ "White move twice": "Las blancas juegan dos veces",
+ "Win by castling long": "Ganar jugando al enroque largo"
};
"Two royal pieces": "Deux pièces royales",
"Unidentified pieces": "Pièces non identifiées",
"Walk on a graph": "Marche sur un graphe",
- "White move twice": "Les blancs jouent deux fois"
+ "White move twice": "Les blancs jouent deux fois",
+ "Win by castling long": "Gagnez en jouant grand roque"
};
--- /dev/null
+p.boxed
+ | If Black castle long, they win. If they cannot, White wins.
+
+p.
+ Besides the usual game end conditions, White can win by preventing black
+ long castle. And, Black can win by castling long.
+
+p For example after 1.e4 e5 2.Bc4, Nc6?? loses immediatly: 3.Bxf7+
+
+figure.diagram-container
+ .diagram
+ | fen:r1bqkbnr/pppp1Bpp/2n5/4p3/4P3/8/PPPP1PPP/RNBQK1NR:
+ figcaption After 1.e4 e5 2.Bc4 Nc6 3.Bxf7+ 1-0
+
+h3 Source
+
+p
+ a(href="https://www.chessvariants.com/winning.dir/castle.html")
+ | Castle chess
+ | on chessvariants.com. See also
+ a(href="http://cinquantesignes.blogspot.com/2020/09/castlechess.html")
+ | this post
+ | giving some clarifications and advices.
+
+p Inventor: Éric Angelini (1996)
--- /dev/null
+p.boxed
+ | Si las negras enroquen por el lado largo, ganan.
+ | Si el enroque largo es imposible, las blancas ganan.
+
+p.
+ Además de las condiciones habituales al final del juego, las blancas pueden
+ ganar al evitar que las negras enroquen por el lado largo. Y las negras
+ pueden ganar jugando este enroque.
+
+p Por ejemplo, después de 1.e4 e5 2.Bc4, Nc6?? pierde inmediatamente: 3.Bxf7+
+
+figure.diagram-container
+ .diagram
+ | fen:r1bqkbnr/pppp1Bpp/2n5/4p3/4P3/8/PPPP1PPP/RNBQK1NR:
+ figcaption Después de 1.e4 e5 2.Bc4 Nc6 3.Bxf7 + 1-0
+
+h3 Fuente
+
+p
+ a(href="https://www.chessvariants.com/winning.dir/castle.html")
+ | Castle Chess
+ | & nbsp;en chessvariants.com. Ver también
+ a(href="http://cinquantesignes.blogspot.com/2020/09/castlechess.html")
+ | esta publicación
+ | dando algunas aclaraciones y consejos.
+
+p Inventor: Éric Angelini (1996)
--- /dev/null
+p.boxed
+ | Si les noirs effectuent le grand roque, ils gagnent.
+ | Si le grand roque est impossible, les blancs gagnent.
+
+p.
+ En plus des conditions habituelles de fin de partie, les blancs peuvent
+ gagner en empêchant les noirs de roquer du côté long. Et, les noirs
+ peuvent gagner en jouant ce roque.
+
+p Par exemple après 1.e4 e5 2.Bc4, Nc6?? perd immédiatement : 3.Bxf7+
+
+figure.diagram-container
+ .diagram
+ | fen:r1bqkbnr/pppp1Bpp/2n5/4p3/4P3/8/PPPP1PPP/RNBQK1NR:
+ figcaption Après 1.e4 e5 2.Bc4 Nc6 3.Bxf7+ 1-0
+
+h3 Source
+
+p
+ a(href="https://www.chessvariants.com/winning.dir/castle.html")
+ | Castle chess
+ | sur chessvariants.com. Voir aussi
+ a(href="http://cinquantesignes.blogspot.com/2020/09/castlechess.html")
+ | ce post
+ | donnant quelques clarifications et conseils.
+
+p Inventeur : Éric Angelini (1996)
"Alice",
"Ambiguous",
"Bicolour",
+ "Castle",
"Doublearmy",
"Forward",
"Freecapture",
"Alice",
"Ambiguous",
"Bicolour",
+ "Castle",
"Doublearmy",
"Forward",
"Freecapture",
"Alice",
"Ambiguous",
"Bicolour",
+ "Castle",
"Doublearmy",
"Forward",
"Freecapture",
--- /dev/null
+import { ChessRules } from "@/base_rules";
+
+export class CastleRules extends ChessRules {
+ getCurrentScore() {
+ const baseScore = super.getCurrentScore();
+ if (baseScore != '*') return baseScore;
+ if (this.getPiece(0,2) == V.KING && this.getPiece(0,3) == V.ROOK)
+ return "0-1";
+ if (this.castleFlags['b'][0] >= 8) return "1-0";
+ return '*';
+ }
+};
('Bishopawns', 'Bishop versus pawns'),
('Cannibal', 'Capture powers'),
('Capture', 'Mandatory captures'),
+ ('Castle', 'Win by castling long'),
('Checkered1', 'Shared pieces (v1)'),
('Checkered2', 'Shared pieces (v2)'),
('Checkless', 'No-check mode'),