Update translations and TODO
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 27 Dec 2018 18:22:28 +0000 (19:22 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 27 Dec 2018 18:22:28 +0000 (19:22 +0100)
18 files changed:
TODO
public/javascripts/variants/Marseille.js
public/stylesheets/layout.sass
public/stylesheets/variant.sass
views/modal-help/en.pug
views/modal-help/es.pug
views/modal-help/fr.pug
views/rules/Alice/en.pug
views/rules/Alice/es.pug
views/rules/Alice/fr.pug
views/rules/Antiking/en.pug
views/rules/Antiking/es.pug [new file with mode: 0644]
views/rules/Antiking/fr.pug
views/rules/Atomic/en.pug
views/rules/Atomic/es.pug [new file with mode: 0644]
views/rules/Atomic/fr.pug
views/rules/Dark/en.pug
views/rules/Dark/fr.pug

diff --git a/TODO b/TODO
index 0ab079d..75be29c 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,19 +1,3 @@
 Finish rules translation in Spanish
-
 Design: final touch (gain extra space on top, using space on the right)
 Crazyhouse: center reserves, grey if zero available, numbers superimposed
-
-Bug MarseilleRules turn issue in computer game (last move is wrong)
-
-[Site "vchess.club"]
-[Variant "Marseille"]
-[Date "2018-12-26"]
-[White "Myself"]
-[Black "Computer"]
-[FenStart "nrqkbrnb/pppppppp/8/8/8/8/PPPPPPPP/RKQBNRBN"]
-[Fen "1rq3nb/1pk1p1p1/1Np1p2p/p7/8/2P5/PP2P1PP/RK1B2B1 w1 1000 -"]
-[Result "0-1"]
-
-1.f4 a5,h6 2.d3,c3 c6,Kc7 3.Qe3,Qe5 d6,dxe5 4.fxe5,e6 fxe6,Rxf1 5.Ng3,Nxf1 Nb6,Bg6 6.Nd2,Ne4 Bxe4,Bxd3 7.Nxd3,Nc5 Na4,Nxb6
-
-1.f2f4 a7a5,h7h6 2.d2d3,c2c3 c7c6,d8c7 3.c1e3,e3e5 d7d6,d6e5 4.f4e5,e5e6 f7e6,f8f1 5.h1g3,g3f1 a8b6,e8g6 6.f1d2,d2e4 g6e4,e4d3 7.e1d3,d3c5 c5a4,a4b6
index 5f78095..2eb4260 100644 (file)
@@ -217,6 +217,18 @@ class MarseilleRules extends ChessRules
        // NOTE:  GenRandInitFen() is OK,
        // since at first move turn indicator is just "w"
 
+       static get VALUES()
+       {
+               return {
+                       'p': 1,
+                       'r': 5,
+                       'n': 3,
+                       'b': 3,
+                       'q': 7, //slightly less than in orthodox game
+                       'k': 1000
+               };
+       }
+
        // No alpha-beta here, just adapted min-max at depth 2(+1)
        getComputerMove()
        {
index e70d3fe..d4f6d6d 100644 (file)
@@ -7,6 +7,7 @@ html, *
 body
   padding: 0
   min-width: 320px
+  margin-bottom: 10px
 
 .container
   padding: 0
@@ -17,9 +18,13 @@ body
     padding: 0
     .section-content
       *
-        margin-left: 0
-        margin-right: 0
+        margin-left: auto
+        margin-right: auto
+        max-width: 767px
+      figure.diagram-container
+        max-width: 1000px
       @media screen and (max-width: 767px)
+        max-width: 100%
         padding: 0 5px
 
 @media screen and (max-width: 767px)
index 355f3c8..df26d58 100644 (file)
@@ -288,20 +288,19 @@ figure.diagram-container
     display: block
     width: 40%
     min-width: 240px
-    max-width: 800px
     margin-left: auto
     margin-right: auto
   .diag12
     float: left
     margin-left: calc(10% - 20px)
     margin-right: 40px
-    @media screen and (max-width: 500px)
+    @media screen and (max-width: 630px)
       float: none
       margin: 0 auto 10px auto
   .diag22
     float: left
     margin-right: calc(10% - 20px)
-    @media screen and (max-width: 500px)
+    @media screen and (max-width: 630px)
       float: none
       margin: 0 auto
   figcaption
index 9541355..f40adbe 100644 (file)
@@ -7,8 +7,8 @@ div(role="dialog")
                                li Click on a variant,
                                li Read the rules (in the upper left corner),
                                li Back to playing mode (click on "Play")
-                               li Click on "new live game", and then, while waiting
-                               li Click on "new computer game" (just next).
+                               li Click on "New live game", and then, while waiting
+                               li Click on "New computer game" (just next).
                        p Reminder:
                        ul
                                li All games start with a random assymetric position.
index 28ff4c3..2ac6ad4 100644 (file)
@@ -7,8 +7,8 @@ div(role="dialog")
                                li Haga clic en una variante,
                                li Lee las reglas (arriba a la izquierda),
                                li Volver al modo de juego (haga clic en "Jugar"),
-                               li Haga clic en "nuevo juego en vivo", luego, mientras tanto,
-                               li Haga clic en "nuevo juego contra la computadora" (siguiente).
+                               li Haga clic en "Nuevo juego en vivo", luego, mientras tanto,
+                               li Haga clic en "Nuevo juego contra la computadora" (siguiente).
                        p Recordatorio :
                        ul
                                li Todas las partes comienzan con una posición aleatoria asimétrica.
index 54c607c..4775f98 100644 (file)
@@ -7,8 +7,8 @@ div(role="dialog")
                                li Cliquez sur une variante,
                                li Lisez les règles (en haut à gauche),
                                li Revenez en mode jeu (cliquer sur "Jouer")
-                               li Cliquez sur "nouvelle partie en direct", puis, en attendant
-                               li Cliquez sur "nouvelle partie contre l'ordinateur" (à côté).
+                               li Cliquez sur "Nouvelle partie en direct", puis, en attendant
+                               li Cliquez sur "Nouvelle partie contre l'ordinateur" (à côté).
                        p Rappel :
                        ul
                                li Toutes les parties démarrent avec une position aléatoire assymétrique.
index 726e58c..8f5dc3d 100644 (file)
@@ -1,25 +1,14 @@
-p.boxed
-       Every move played ends up on another board (the "other side of the mirror").
-       There are two boards. All pieces start on board 1.
+p.boxed.
+       Every move played ends up on another board (the "other side of the mirror").
+       There are two boards. All pieces start on board 1.
 
-h3 Specifications
-
-ul
-       li Chessboard: standard.
-       li Material: standard + Alice pieces.
-       li Non-capturing moves: standard.
-       li Special moves: standard.
-       li Captures: standard (if on same board).
-       li End of game: standard.
-
-h3 Basics
-
-p
-       | Two boards are used in this variant. Pieces from board 2 are represented on
-       | the main board, upside down.
-       | Any move played must be valid on the board it is played on.
-       | In addition, the final square should not be occupied by a piece from the other board
-       | (thus allowing to represent all on one board).
+p.
+       Two boards are used in this variant (represented on only one).
+       Upside-down pieces appear at every "normal" pieces moves: they live on
+       another board. When moved, they return to the initial board.
+       Orthodox rules apply on each board.
+       In addition, the final square should not be occupied by a piece from the
+       other board (thus allowing to represent all on one board).
 
 p Notation for Alice pieces was chosen as follow:
 ul
@@ -35,26 +24,29 @@ figure.diagram-container
                | fen:rnbqkbnr/ppp1pppp/8/8/2p5/5O2/PP1PPPPP/RNBQKB1R:
        figcaption After the moves 1.Nf3 Pd5 2.Pc4 Sxc4
 
-h3 End of the game
+p.
+       En-passant and castle occur as they do in the standard game.
+       More specifically, en-passant is possible regardless of the worlds pawns
+       are in. This is justified because pawns "go through the mirror" while moving,
+       and can thus be captured either right after or just before they pass the
+       mirror.
+       Castling should be legal according to orthodox rules on the board 1 (it
+       cannot occur on board 2, because it would mean king and rook moved).
+       Moreover, the king cannot be in check on board 2 after castling.
 
-p
-       | As in the orthodox game, win by checkmating the king. It shouldn't be able to
-       | escape the check, not even by moving to the other board.
+h3 End of the game
 
 p.
-       Note: en-passant and castle occur as they do in the standard game.
-       More specifically, en-passant is possible regardless of the worlds pawns are in.
-       This is justified because pawns "go through the mirror" while moving, and can
-       thus be captured either right after or just before they pass the mirror.
-       Castling should be legal according to orthodox rules on the board 1 (it cannot
-       occur on board 2, because it would mean king and rook moved). Moreover, the
-       king cannot be in check on board 2 after castling.
+       As in the orthodox game, win by checkmating the king.
+       It shouldn't be able to escape the check, not even by moving to the other
+       board.
 
 h3 More information
 
 p
        | See the Alice chess pages on 
-       a(href="https://www.chessvariants.com/other.dir/alice.html") chessvariants.com
+       a(href="https://www.chessvariants.com/other.dir/alice.html")
+               | chessvariants.com
        | &nbsp;and on 
        a(href="https://www.schemingmind.com/journalarticle.aspx?article_id=9")
                | schemingmind.com
index 808b78f..b3c9502 100644 (file)
@@ -1,27 +1,17 @@
-p.boxed
-       | Cada pieza movida llega a otra tabla ("en el otro lado del espejo").
-       | Hay dos tableros. Todas las piezas comienzan en el tablero 1.
-
-h3 Especificaciones
-
-ul
-       li Tablero : estándar.
-       li Matériel : estándar + piezas Alice.
-       li Movimientos simples : estándar.
-       li Movimientos especiales : estándar.
-       li Capturas : estándar (en el mismo tablero).
-       li Final de partida : estándar.
-
-h3 Lo esencial
+p.boxed.
+       Cada pieza movida llega en otro tablero ("en el otro lado del espejo").
+       Hay dos tableros. Todas las piezas comienzan en el tablero 1.
 
 p.
-       En esta variante se utilizan dos tableros.
-       Las piezas del tablero 2 están representadas al revés.
-       Cada movimiento jugado debe ser válido en su tablero (en el sentido habitual)
+       En esta variante se utilizan dos tableros (representados en un unico
+       tablero).
+       Piezas devueltas aparecen en cada jugada de pieza "normal" : ellas viven
+       en un otro tablero. Vuelven al tablero inicial cuando se mueven.
+       Las reglas ortodoxas se aplican en cada tablero.
        Además, la casilla de llegada no debe estar ocupado por una pieza en el otro
        tablero (es lo que hace posible representar todo en 64 cajas).
 
-p La notación de las "piezas Alice" es la siguiente :
+p Las "piezas Alice" se indican como sigue :
 ul
        li Peon : S
        li Torre : U
@@ -33,23 +23,24 @@ ul
 figure.diagram-container
        .diagram
                | fen:rnbqkbnr/ppp1pppp/8/8/2p5/5O2/PP1PPPPP/RNBQKB1R:
-       figcaption Despues de los movimientos 1.Nf3 Pd5 2.Pc4 Sxc4
+       figcaption Despues de las jugadas 1.Nf3 Pd5 2.Pc4 Sxc4
+
+p.
+       La captura en-passant y el enroque se hacen como en el juego ortodoxo.
+       Más precisamente, uno puede tomar en-passant cualquiera que sea el mundo de
+       salida y de llegada de los peones.
+       Esto se justifica por el paso de los peones "a través del espejo": se pueden
+       capturar justo antes o justo después del espejo.
+       El enroque debe ser legal en el tablero de partida (necesariamente 1, de lo
+       contrario el rey se ha movido y el enroque ya no es legal), y el rey no debe
+       estar en jaque en el tablero de llegada.
 
 h3 Final de partida
 
 p.
        Al igual que con el ajedrez ortodoxo, jaque mate es una victoria.
-       El rey contrario no debe ser capaz de contrarrestar el jaque, ni siquiera mientras
-       se escapa en el otro tablero de ajedrez.
-
-p.
-       Nota : la captura en-passant y el enroque se hacen como en el juego ortodoxo.
-       Más precisamente, uno puede tomar en-passant cualquiera que sea el mundo de
-       salida y llegada de los peones.
-       Esto se justifica por el paso de los peones "a través del espejo": se pueden
-       capturar justo antes o después del espejo. El enroque debe ser legal en el
-       tablero de partida (necesariamente 1, de lo contrario el rey se ha movido y el
-       enroque ya no es legal), y el rey no debe estar bajo control en el tablero de llegada.
+       El rey contrario no debe ser capaz de parar el jaque, ni siquiera mientras
+       se escapa en el otro tablero.
 
 h3 Más información
 
index d9353be..178aaee 100644 (file)
@@ -1,27 +1,18 @@
-p.boxed
-       | Chaque pièce déplacée arrive sur un autre échiquier ("de l'autre côté du miroir").
-       | Il y a deux échiquiers. Toutes les pièces démarrent sur l'échiquier 1.
+p.boxed.
+       Chaque pièce déplacée arrive sur un autre échiquier ("de l'autre côté du
+       miroir").
+       Il y a deux échiquiers. Toutes les pièces démarrent sur l'échiquier 1.
 
-h3 Caractéristiques
-
-ul
-       li Échiquier : standard.
-       li Matériel : standard + pièces Alice.
-       li Coups non capturants : standards.
-       li Coups spéciaux : standards.
-       li Captures : standards (sur le même échiquier).
-       li Fin de partie : standard.
-
-h3 Bases
-
-p
-       | Deux échiquiers sont utilisés dans cette variante.
-       | Les pièces de l'échiquier 2 sont représentées à l'envers.
-       | Tout coup joué doit être valide sur son échiquier (au sens habituel).
-       | De plus, la case d'arrivée ne doit pas être occupée par une pièce sur
-       | l'autre échiquier (c'est ce qui permet de tout représenter sur 64 cases).
-
-p La notation des "pièces Alice" est la suivante :
+p.
+       Deux échiquiers sont utilisés dans cette variante.
+       Des pièces à l'envers apparaissent à chaque coup de pièce "normale" :
+       ces dernières vivent sur un autre échiquier. Quand elles se déplacent à
+       nouveau, elles reviennent sur l'échiquier initial.
+       Les règles usuelles s'appliquent sur chaque échiquier.
+       De plus, la case d'arrivée ne doit pas être occupée par une pièce sur
+       l'autre échiquier (c'est ce qui permet de tout représenter sur 64 cases).
+
+p Les "pièces Alice" se notent comme suit :
 ul
        li Pion : S
        li Tour : U
@@ -35,6 +26,16 @@ figure.diagram-container
                | fen:rnbqkbnr/ppp1pppp/8/8/2p5/5O2/PP1PPPPP/RNBQKB1R:
        figcaption Après les coups 1.Nf3 Pd5 2.Pc4 Sxc4
 
+p.
+       La prise en passant et le roque s'effectuent comme dans le jeu orthodoxe.
+       Plus précisément, on peut prendre en passant quels que soient les mondes de
+       départ et d'arrivée des pions. Cela se justifie par le passage des pions "à
+       travers le miroir" : ils peuvent ainsi être capturés juste avant ou juste
+       après le miroir.
+       Le roque doit être légal sur l'échiquier de départ (forcément le 1, sinon le
+       roi a bougé et le roque n'est plus légal), et le roi ne doit pas être en
+       échec sur l'échiquier d'arrivée.
+
 h3 Fin de partie
 
 p
@@ -42,20 +43,12 @@ p
        | Celui-ci ne doit pas pouvoir parer l'échec, pas même en s'échappant sur
        | l'autre échiquier.
 
-p.
-       Note : la prise en passant et le roque s'effectuent comme dans le jeu orthodoxe.
-       Plus précisément, on peut prendre en passant quels que soient les mondes de
-       départ et d'arrivée des pions. Cela se justifie par le passage des pions
-       "à travers le miroir" : ils peuvent ainsi être capturés soient juste avant,
-       ou juste après le miroir. Le roque doit être légal sur l'échiquier de départ
-       (forcément le 1, sinon le roi a bougé et le roque n'est plus légal),
-       et le roi ne doit pas être en échec sur l'échiquier d'arrivée.
-
 h3 Plus d'information
 
 p
        | Voir les pages dédiées à cette variante sur 
-       a(href="https://www.chessvariants.com/other.dir/alice.html") chessvariants.com
+       a(href="https://www.chessvariants.com/other.dir/alice.html")
+               | chessvariants.com
        | &nbsp;et 
        a(href="https://www.schemingmind.com/journalarticle.aspx?article_id=9")
                | schemingmind.com
index 80b8521..99c856a 100644 (file)
@@ -1,47 +1,47 @@
-p.boxed
-       You have a king and an antiking. King cannot be let in check, but antiking
-       must always stay under check. Antiking captures his own kind.
+p.boxed.
+       You have a king and an antiking. King cannot be let in check, but antiking
+       must always stay under check. Antiking captures his own kind.
 
-h3 Specifications
-
-ul
-       li Chessboard: standard.
-       li Material: additional antiking.
-       li Non-capturing moves: standard.
-       li Special moves: standard.
-       li Captures: special case of antiking (see below).
-       li End of game: Checkmate or anti-checkmate.
-
-h3 Basics
+p.
+       A new piece is introduced: the antiking, noted by the letter 'A' in diagrams
+       and PGNs. This piece must always remain under (orthodox) check: it is
+       considered in (anti-)check when not attacked by any enemy piece. In such a
+       situation, the antiking must move immediately to an attacked square.
 
 p.
-       The additional piece is a royal figure, thus cannot be captured.
-       It captures the pieces of his color (to help checkmate opponent antiking,
-       but by doing so it also make standard checkmate more difficult...).
-       It should always remains under check (if it cannot, game is over).
+       The antiking is a royal figure, and thus cannot be captured.
+       It captures only the pieces of his color (to help checkmating the opponent's
+       antiking, but this also complicates standard checkmate).
 
 figure.diagram-container
        .diagram
                | fen:rnbqkbnr/pppppppp/3A4/8/8/3a4/PPPPPPPP/RNBQKBNR c5,d5,e5:
        figcaption Marked squares are not allowed antiking moves.
 
+ul
+       li.
+               Although antiking captures his color, it doesn't check his king - it
+               doesn't check the opponent's king either.
+       li.
+               Since it would allow a basic tactic (keep antiking touching opponent's
+               king), kings do not attack antikings.
+
 h3 End of the game
 
 p There are two ways to win:
 ol
        li Checkmate opponent king
        li Anti-checkmate opponent antiking
-p ...Or maybe do both at the same time?
-
 p.
-       Note 1: athough antiking captures his color, it doesn't check his king -
-       it doesn't check the opponent's king either.
+       ...Or do both at the same time, as on the following diagram after 3.Qxf7#
+       (the black antiking was on g3).
 
-p.
-       Note 2: since it would allow a basic tactic (keep antiking touching opponent's
-       king), kings do not attack antikings.
+figure.diagram-container
+       .diagram
+               | fen:rnbqkbnr/pppp1Qpp/1A6/4p3/4P2a/8/PPPP1PPP/RNB1KBNR h4,e8:
+       figcaption After 1.e4 e5 2.Qh5 Ah4?? 3.Qxf7#
 
-h3 Source
+h3 More information
 
 p
        a(href="https://www.chessvariants.com/diffobjective.dir/anti-king-chess.html")
diff --git a/views/rules/Antiking/es.pug b/views/rules/Antiking/es.pug
new file mode 100644 (file)
index 0000000..902f34c
--- /dev/null
@@ -0,0 +1,52 @@
+p.boxed.
+       Tienes un rey y un "antirey". El rey no puede estar en jaque al final de un
+       turno, pero el antirey siempre debe estar en jaque. Este último captura las
+       piezas de su color.
+
+p.
+       Se presenta una nueva pieza: el antirey, denotado por la letra 'A' en los
+       diagramas y PGNs. Esta pieza debe estar siempre en jaque (ortodoxo) : se
+       considera en (anti-)jaque cuando no es atacada por ninguna pieza enemiga.
+       En este caso, el antirey debe unirse inmediatamente a una casilla atacada.
+
+p.
+       El antirey es una pieza real, por lo que no puede ser capturado.
+       Ella captura solo las piezas de su color (esto ayuda a mate el anti-rey del
+       oponente, pero complica el mate ortodoxo).
+
+figure.diagram-container
+       .diagram
+               | fen:rnbqkbnr/pppppppp/3A4/8/8/3a4/PPPPPPPP/RNBQKBNR c5,d5,e5:
+       figcaption Las casillas mostradas no son legales jugadas de antirey.
+
+ul
+       li.
+               Aunque el antirey captura las piezas de su color, no da jaque a su rey,
+               ni tampoco al rey contrario.
+       li.
+               Los reyes no atacan a los antireyes (de color opuesto). De hecho, esto
+               permitiría aplicar un método simple para nunca estar en "anti-jaque" :
+               permanecer pegado al rey contrario.
+
+h3 Final de partida
+
+p Hay dos maneras de ganar :
+ol
+       li Mater el rey contrario
+       li "Anti-mater" el antirey contrario
+p.
+       ...O haga ambas cosas al mismo tiempo, como se muestra en el siguiente
+       diagrama después de 3.Qxg7# (el antirey negro estaba en g3).
+
+figure.diagram-container
+       .diagram
+               | fen:rnbqkbnr/pppp1Qpp/1A6/4p3/4P2a/8/PPPP1PPP/RNB1KBNR h4,e8:
+       figcaption Después de 1.e4 e5 2.Qh5 Ah4?? 3.Qxf7#
+
+h3 Más información
+
+p
+       | La 
+       a(href="https://www.chessvariants.com/diffobjective.dir/anti-king-chess.html")
+               | variante Antiking
+       | &nbsp;en chessvariants.com.
index 839cf2a..57ff3fb 100644 (file)
@@ -1,49 +1,50 @@
-p.boxed
-       | Vous disposez d'un roi et d'un "anti-roi". Le roi ne peut pas se retrouver
-       | en échec à la fin d'un tour, mais l'anti-roi doit lui toujours être en échec.
-       Ce dernier capture les pièces de sa couleur.
+p.boxed.
+       Vous disposez d'un roi et d'un "antiroi". Le roi ne peut pas se retrouver
+       en échec à la fin d'un tour, mais l'antiroi doit lui toujours être en échec.
+       Ce dernier capture les pièces de sa couleur.
 
-h3 Caractéristiques
-
-ul
-       li Échiquier : standard.
-       li Matériel : un anti-roi additionnel.
-       li Coups non capturants : standards.
-       li Coups spéciaux : standards.
-       li Captures : cas particulier de l'anti-roi (voir ci-dessous).
-       li Fin de partie : mat ou "anti-mat".
-
-h3 Bases
+p.
+       Une nouvelle pièce fait son apparition : l'antiroi, noté par la lettre 'A'
+       sur les diagrammes et PGNs. Cette pièce doit toujour rester en échec
+       (orthodoxe) : elle est considérée en (anti-)échec lorsqu'elle n'est attaquée
+       par aucune pièce ennemie. Dans ce cas, l'antiroi doit immédiatement
+       rejoindre une case attaquée.
 
 p.
-       La nouvelle pièce est royale, et donc ne peut être capturée.
-       Elle capture les pièces de sa couleur (cela aide à mater l'anti-roi adverse,
-       mais complique le mat orthodoxe...).
-       L'anti-roi doit toujours rester en échec (s'il ne peut pas, vous avez perdu).
+       L'antiroi est une pièce royale, elle ne peut donc pas être capturée.
+       Elle capture seulement les pièces de sa couleur (cela aide à mater
+       l'anti-roi adverse, mais complique le mat orthodoxe).
 
 figure.diagram-container
        .diagram
                | fen:rnbqkbnr/pppppppp/3A4/8/8/3a4/PPPPPPPP/RNBQKBNR c5,d5,e5:
        figcaption Les cases indiquées ne sont pas des coups d'anti-roi légaux.
 
+ul
+       li.
+               Bien que l'antiroi capture les pièces de son camp, il ne met pas
+               en échec son roi - ni d'ailleurs le roi adverse.
+       li.
+               Les rois n'attaquent pas les antirois (de couleur opposée).
+               En effet ceci permettrait d'appliquer une méthode simple pour ne jamais
+               être en "anti-échec" : rester collé au roi adverse.
+
 h3 Fin de partie
 
 p Il y a deux façons de gagner :
 ol
        li Mater le roi adverse
        li "Anti-mater" l'anti-roi adverse
-p ...Ou peut-être faire les deux en même temps ?
-
 p.
-       Note 1 : bien que l'anti-roi capture les pièces de son camp, il ne met pas
-       en échec son roi - ni d'ailleurs le roi adverse.
+       ...Ou faire les deux en même temps, comme sur le diagramme suivant après
+       3.Qxf7# (l'antiroi noir était en g3).
 
-p.
-       Note 2 : les rois n'attaquent pas les anti-rois (de couleur opposée).
-       En effet ceci permettrait d'appliquer une méthode simple pour ne jamais
-       être en "anti-échec" : rester collé au roi adverse.
+figure.diagram-container
+       .diagram
+               | fen:rnbqkbnr/pppp1Qpp/1A6/4p3/4P2a/8/PPPP1PPP/RNB1KBNR h4,e8:
+       figcaption Après 1.e4 e5 2.Qh5 Ah4?? 3.Qxf7#
 
-h3 Source
+h3 Plus d'information
 
 p
        | La 
index ee8ae9e..6c5df20 100644 (file)
@@ -1,28 +1,23 @@
-p.boxed
-       | All captures result in an "explosion" through which all surrounding
-       | pieces other than pawns are removed from the board.
-
-h3 Specifications
-
-ul
-       li Chessboard: standard.
-       li Material: standard.
-       li Non-capturing moves: standard.
-       li Special moves: standard.
-       li Captures: explosions; see below.
-       li End of game: king explodes, or standard; see below.
-
-h3 Basics
+p.boxed.
+       Each capture results in an "explosion" through which all surrounding
+       pieces other than pawns are removed from the board.
 
 p.
-       When a piece captures an opponent figure on some square S, all pieces sitting
-       on a square reachable by a king move from S are removed.
+       When a piece P captures an opponent figure on some square S, all pieces
+       sitting on a square reachable by a king move from S are removed, including P
+       itself.
        The pawns, however, remain: they have to be taken directly to disappear.
 
+p.
+       Suicide is forbidden. Thus a king can touch the opponent king and become
+       immune to checks, like on the following diagrams: 1.Rxf5 is impossible.
+
 figure.diagram-container
-       .diagram
-               | fen:r3kbnr/pp3ppp/3p4/4p3/8/8/PPPPPPPP/R1BQKBNR:
-       figcaption After the moves 1.Nc3 d6?? 2.Nd5 e5 3.Nxc7
+       .diagram.diag12
+               | fen:rnb5/pp4pp/2p5/N4pK1/3P2k1/8/PP4PP/5R2 a5,b7:
+       .diagram.diag22
+               | fen:8/p5pp/2p5/5pK1/3P2k1/8/PP4PP/5R2:
+       figcaption Left: before 1.Nxb7. Right: after capture.
 
 h3 End of the game
 
@@ -33,14 +28,17 @@ ol
 
 p Explosions have priority: a checkmate followed by a king explosion loses.
 
-p.
-       Note: suicide is forbidden. Thus a king can touch the opponent king -
-       and become immune to checks.
+figure.diagram-container
+       .diagram
+               | fen:r3kbnr/pp3ppp/3p4/4p3/8/8/PPPPPPPP/R1BQKBNR:
+       figcaption.
+               After the moves 1.Nc3 d6?? 2.Nd5 e5 (forced to avoid king explosion)
+               3.Nxc7
 
 h3 More information
 
 p.
-       Many resources can be found on the web ("Google it"; this variation is played on
-       lichess and FICS, among others).
+       Many resources can be found on the web (this variation is played on lichess
+       and FICS, among others).
        This game was played first in 1995 at the German Internet Chess Server (GICS)
        according to Wikipedia.
diff --git a/views/rules/Atomic/es.pug b/views/rules/Atomic/es.pug
new file mode 100644 (file)
index 0000000..04d6670
--- /dev/null
@@ -0,0 +1,43 @@
+p.boxed
+       Cada captura crea una "explosión" que elimina todas las piezas cercanas,
+       excepto los peones.
+
+p.
+       Cuando una pieza P captura a un enemigo en la casilla C, todas las
+       piezas en las casillas alcanzable por un rey desde C desaparecen, P incluida.
+       Los peones permanecen sin embargo: deben ser capturadas directamente.
+
+p.
+       El suicidio está prohibido. Por lo tanto, el rey puede tocar al rey
+       contrario y volverse invulnerable a los jaques, como en el siguiente
+       diagrama : 1.Rxf5 es imposible.
+
+figure.diagram-container
+       .diagram.diag12
+               | fen:rnb5/pp4pp/2p5/N4pK1/3P2k1/8/PP4PP/5R2 a5,b7:
+       .diagram.diag22
+               | fen:8/p5pp/2p5/5pK1/3P2k1/8/PP4PP/5R2:
+       figcaption Izquierda : antes 1.Nxb7. Derecha : después de la captura.
+
+h3 Final de partida
+
+p Hay dos maneras de ganar, en orden descendente de prioridad :
+ol
+       li Haz explotar al rey contrario
+       li Mater el rey contrario
+
+p Las explosiones tienen prioridad : un mate seguida de una explosión pierde.
+
+figure.diagram-container
+       .diagram
+               | fen:r3kbnr/pp3ppp/3p4/4p3/8/8/PPPPPPPP/R1BQKBNR:
+       figcaption.
+               Después de las jugadas 1.Nc3 d6?? 2.Nd5 e5 (forzado, para evitar la
+               explosión del rey) 3.Nxc7
+
+h3 Más información
+
+p.
+       Hay muchas páginas de internet sobre esta variante (se puede jugar en
+       lichess y en FICS, entre otros).
+       Nació en 1995 en el German Internet Chess Server (GICS) segun Wikipedia.
index 894155b..c009e4a 100644 (file)
@@ -1,28 +1,24 @@
 p.boxed
-       | Chaque capture engendre une "explosion" faisant disparaître toutes les
-       | pièces avoisinantes - sauf les pions.
-
-h3 Caractéristiques
-
-ul
-       li Échiquier : standard.
-       li Matériel : standard.
-       li Coups non capturants : standards.
-       li Coups spéciaux : standards.
-       li Captures : explosions ; voir ci-dessous.
-       li Fin de partie : faire exploser ou mater le roi ; voir ci-dessous.
-
-h3 Bases
+       Chaque capture engendre une "explosion" faisant disparaître toutes les
+       pièces avoisinantes - sauf les pions.
 
 p.
-       Quand une pièce capture un ennemi sur la case C, toutes les pièces situées
-       sur des cases atteignables en un coup de roi depuis C disparaissent.
+       Quand une pièce P capture un ennemi sur la case C, toutes les pièces situées
+       sur des cases atteignables en un coup de roi depuis C disparaissent, y
+       compris P elle-même.
        Les pions subsistent toutefois : ils doivent être capturés directement.
 
+p.
+       Le suicide est interdit. Ainsi, le roi peut toucher le roi adverse et
+       devenir invulnérable aux échecs, comme sur le diagramme suivant : 1.Rxf5
+       est impossible.
+
 figure.diagram-container
-       .diagram
-               | fen:r3kbnr/pp3ppp/3p4/4p3/8/8/PPPPPPPP/R1BQKBNR:
-       figcaption Après les coups 1.Nc3 d6?? 2.Nd5 e5 3.Nxc7
+       .diagram.diag12
+               | fen:rnb5/pp4pp/2p5/N4pK1/3P2k1/8/PP4PP/5R2 a5,b7:
+       .diagram.diag22
+               | fen:8/p5pp/2p5/5pK1/3P2k1/8/PP4PP/5R2:
+       figcaption Gauche : avant 1.Nxb7. Droite : après capture.
 
 h3 Fin de partie
 
@@ -33,14 +29,17 @@ ol
 
 p Les explosions ont la priorité : un mat suivi d'une explosion perd.
 
-p.
-       Note : le suicide est interdit. Ainsi, le roi peut toucher le roi adverse
-       et devenir invulnérable aux échecs.
+figure.diagram-container
+       .diagram
+               | fen:r3kbnr/pp3ppp/3p4/4p3/8/8/PPPPPPPP/R1BQKBNR:
+       figcaption.
+               Après les coups 1.Nc3 d6?? 2.Nd5 e5 (forcé pour éviter l'explosion du roi)
+               3.Nxc7
 
 h3 Plus d'information
 
 p.
-       Beaucoup d'informations sont disponibles sur cette variante : "Google it"
-       (elle est jouée sur lichess et sur FICS, entre autres).
+       On trouve beaucoup de pages internet au sujet de cette variante (elle est
+       jouée sur lichess et sur FICS, entre autres).
        Celle-ci est née en 1995 sur le German Internet Chess Server (GICS)
        à en croire Wikipedia.
index f4585e3..a086568 100644 (file)
@@ -3,9 +3,6 @@ p.boxed
 
 h3 Divergences
 
-ul
-       li End of game: capture the king.
-
 p.
        Incomplete information version of the orthodox game
        (with randomized initial position).
@@ -29,6 +26,7 @@ figure.diagram-container
 p.
        Choose your move carefully, based on what you can infer from the
        opponent's past moves. Counting material, in particular, is crucial.
+       Be careful to block the attacking lines toward your king too.
        Good luck!
 
 p.
index b64224e..ccb9b33 100644 (file)
@@ -4,15 +4,10 @@ p.boxed
 
 h3 Divergences
 
-ul
-       li Fin de partie: capturer le roi.
-
 p.
        Version à information incomplète du jeu d'échecs orthodoxe
        (avec position initiale aléatoire).
 
-p Incomplete information version of the orthodox game (also shuffled).
-
 h3 Bases
 
 p.
@@ -30,14 +25,16 @@ figure.diagram-container
        figcaption Position de départ habituelle après 1.e4 d5
 
 p.
-       Choisissez votre coup prudemment, en vous basant sur ce qui est devinable des
-       derniers coups adverses. En particulier, compter le matériel est
-       indispensable. Bonne chance !
+       Choisissez votre coup prudemment, en vous basant sur ce qui est devinable
+       des derniers coups adverses. En particulier, compter le matériel est
+       indispensable. Faites attention aussi à couvrir les lignes d'attaque sur
+       le roi. Bonne chance !
 
 p.
-       Note : le robot joueur ne triche pas - il n'utilise que l'information décrite
-       plus haut. De plus il est très basique et clairement moins performant qu'un
-       humain. Ceci dit il peut être amusant de commencer contre lui :)
+       Note : le robot joueur ne triche pas - il n'utilise que l'information
+       décrite plus haut. De plus il est très basique et clairement moins
+       performant qu'un humain. Ceci dit il peut être amusant de commencer
+       contre lui :)
 
 h3 Fin de partie