From: Benjamin Auder Date: Sat, 30 Dec 2023 10:58:13 +0000 (+0100) Subject: Fix some complete rules X-Git-Url: https://git.auder.net/variants/%24%7Bvname%7D/%7B%7B%20asset%28%27mixstore/DESCRIPTION?a=commitdiff_plain;h=a55fde41f82207bf401c54b158dd6d0182799fd3;p=xogo.git Fix some complete rules --- diff --git a/.gitignore b/.gitignore index 160c63a..d3206f9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,7 @@ /node_modules/ /assets/ /assets.zip +/extras/ +/extras.zip /.pid /parameters.js diff --git a/README.md b/README.md index b0517cd..4636ac4 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ PHP + Node.js + npm. ## Usage ```wget https://xogo.live/assets.zip && unzip assets.zip```
+```wget https://xogo.live/extras.zip && unzip extras.zip```
Rename parameters.js.dist → parameters.js, and edit file.
```npm i``` diff --git a/common.css b/common.css index 5fee7ef..eabf641 100644 --- a/common.css +++ b/common.css @@ -260,6 +260,10 @@ piece.mark.transparent { color: #0D1C46; font-weight: bold; } +.full-rules .img-center { + display: block; + margin: 0 auto; +} /* TODO: use same CSS for rules and full-rules? */ .full-rules p, .full-rules ul, .full-rules ol { margin: 10px 0; diff --git a/variants/Alapo/rules.html b/variants/Alapo/rules.html index 9ec57e0..910613b 100644 --- a/variants/Alapo/rules.html +++ b/variants/Alapo/rules.html @@ -2,8 +2,10 @@

Goal: bring a piece safely on the last rank.

- - chessvariants page. - +

+ + chessvariants page. + +

Johannes Tranelis (1982).

diff --git a/variants/Alice/rules.html b/variants/Alice/rules.html index 98659ea..215818f 100644 --- a/variants/Alice/rules.html +++ b/variants/Alice/rules.html @@ -1,7 +1,9 @@

Pieces move to the next board after playing (other side of the mirror).

- - chessvariants page. - +

+ + chessvariants page. + +

Vernon R. Parton (1953).

diff --git a/variants/Allmate/rules.html b/variants/Allmate/rules.html index 4bdc308..4738949 100644 --- a/variants/Allmate/rules.html +++ b/variants/Allmate/rules.html @@ -6,8 +6,10 @@

Win by mate-capturing the enemy king.

- - chessvariants page. - +

+ + chessvariants page. + +

Dr. Chris Taylor (1979).

diff --git a/variants/Ambiguous/rules.html b/variants/Ambiguous/rules.html index acd3585..137579d 100644 --- a/variants/Ambiguous/rules.html +++ b/variants/Ambiguous/rules.html @@ -8,8 +8,10 @@ your opponent, then to choose one for you - which could be altered.

- - chessvariants page. - +

+ + chessvariants page. + +

Fabrice Liardet (2005).

diff --git a/variants/Apocalypse/complete_rules.html b/variants/Apocalypse/complete_rules.html index ae45dad..9e2d5c0 100644 --- a/variants/Apocalypse/complete_rules.html +++ b/variants/Apocalypse/complete_rules.html @@ -5,7 +5,6 @@ -

Apocalypse Rules

diff --git a/variants/Apocalypse/rules.html b/variants/Apocalypse/rules.html index 6674bb2..75f35b2 100644 --- a/variants/Apocalypse/rules.html +++ b/variants/Apocalypse/rules.html @@ -8,8 +8,10 @@

The goal is to eliminate all enemy pawns.

- - Full rules description. - +

+ + Full rules description. + +

C.S. Elliott (1976).

diff --git a/variants/Arena/rules.html b/variants/Arena/rules.html index 5aa8716..b9098c3 100644 --- a/variants/Arena/rules.html +++ b/variants/Arena/rules.html @@ -14,8 +14,10 @@ A player who lose both king and queen also lose the game.

- - chessvariants page. - +

+ + chessvariants page. + +

Jeff Kiska (2000).

diff --git a/variants/Atomic/rules.html b/variants/Atomic/rules.html index 6067ed5..6675403 100644 --- a/variants/Atomic/rules.html +++ b/variants/Atomic/rules.html @@ -5,6 +5,8 @@

Win by checkmate or by exploding the enemy king.

- - lichess page. - +

+ + lichess page. + +

diff --git a/variants/Avalam/rules.html b/variants/Avalam/rules.html index 83e301e..6883b3b 100644 --- a/variants/Avalam/rules.html +++ b/variants/Avalam/rules.html @@ -9,8 +9,10 @@ largest number of towers of his color (on top) wins.

- - More informations. - +

+ + More informations. + +

Philippe Deweys (1995).

diff --git a/variants/Avalanche/rules.html b/variants/Avalanche/rules.html index b8bb255..9528d3a 100644 --- a/variants/Avalanche/rules.html +++ b/variants/Avalanche/rules.html @@ -6,8 +6,10 @@

The goal is either to checkmate or to capture the enemy king.

- - chessvariants page. - +

+ + chessvariants page. + +

Ralph Betza (1977).

diff --git a/variants/Balaklava/rules.html b/variants/Balaklava/rules.html index 97c96a6..96ce11b 100644 --- a/variants/Balaklava/rules.html +++ b/variants/Balaklava/rules.html @@ -10,8 +10,10 @@
  • No en passant captures.
  • - - chessvariants page. - +

    + + chessvariants page. + +

    Gianluca Vecchi (1994).

    diff --git a/variants/Bario/complete_rules.html b/variants/Bario/complete_rules.html index 93ecc9d..ad700ac 100644 --- a/variants/Bario/complete_rules.html +++ b/variants/Bario/complete_rules.html @@ -1,64 +1,97 @@ -p.boxed - | Your pieces remain in an undefined state until they are moved. + + + + Bario Rules + + + + +
    +

    Bario Rules

    -p - | Bario is a chess variant invented by Panos Louridas in 1998. - a(href="https://www.bario-chess-checkers-chessphotography-spaceart.de/") - | His website - |  contains many examples and explanations. - | See also the discussion - a(href="https://www.chessvariants.com/index/listcomments.php?order=DESC&itemid=Bario") - | on chessvariants.com - | . +

    + Bario is a chess variant invented by Panos Louridas in 1998. + + His website + + contains many examples and explanations. + See also the discussion + + on chessvariants.com + . +

    -figure - img.img-center(src="/variants/Bario/chessboard2.jpg" style="width:75%") - figcaption.text-center. - [With author's permission] +
    + +
    + [With author's permission]
    Undefined pieces on first ranks. +
    +
    -p. +

    Queens, rooks, bishops and knights begin the game in a reserve below the board, because their location isn't determined yet. At each turn, you can either move something already defined on the board, or -ol - li move a piece from your reserve to any question mark, and then - li move the now defined piece on the board. +

    +
      +
    1. move a piece from your reserve to any question mark, and then
    2. +
    3. move the now defined piece on the board.
    4. +
    -p An undefined piece gives check if some specialization giving check exists. +

    Your pieces remain in an undefined state until they are moved.

    -figure.diagram-container - .diagram - | fen:uuuuu1uk/p2p1qp1/1p6/7p/7P/5N2/PP1P1PP1/UUUKU1UU: - figcaption The white king cannot move, a rook might be on c8 or e8 +

    An undefined piece gives check if some specialization giving check exists.

    -h4 Details, special cases +
    +
    +
    +
    The white king cannot move, a rook might be on c8 or e8
    +
    -p. +

    Details, special cases

    + +

    At the first move, you must select a square for the king anywhere on the first rank — preferably in a corner. This deviates from the original intention of the author, but this way you will not need to castle later in the game. Click on a square to place the king. +

    -p. +

    If after your move all your pieces are defined (and weren't before), then all pieces on board revert to undefined state, unless: -ul - li. +

    +
      +
    • all your pieces (board + reserve) are now of the same type, in which case none is put back in reserve, or - li. +
    • +
    • all opponent's pieces are of the same type, in which case they also remain defined. +
    • +
    -figure.diagram-container - .diagram.diag12 - | fen:uuu1kuuu/2p5/2n5/1p1ppppp/p4PPP/3N3Q/PPPPP1BB/1RRUK3: - .diagram.diag22 - | fen:uuu1kuuu/2p5/2u5/1p1ppppp/p4PPP/3UU2U/PPPPP1UU/1UU1K3: - figcaption. +
    +
    +
    +
    +
    +
    Before and after knight definition on d1 (moving to e3) +
    +
    -p. +

    If one of your undefined pieces is captured, you first have to choose which one was captured from the reserve: place it at the capture location. +

    + + + + + diff --git a/variants/Bario/rules.html b/variants/Bario/rules.html index 733246f..2dbcf24 100644 --- a/variants/Bario/rules.html +++ b/variants/Bario/rules.html @@ -14,12 +14,16 @@ all pieces on board return to undefined state.

    - - Author's website. - +

    + + Author's website. + +

    - - Full rules description. - +

    + + Full rules description. + +

    Panos Louridas (1985).

    diff --git a/variants/Baroque/complete_rules.html b/variants/Baroque/complete_rules.html index 1ac46cc..87709ed 100644 --- a/variants/Baroque/complete_rules.html +++ b/variants/Baroque/complete_rules.html @@ -5,7 +5,6 @@ -

    Baroque Rules

    @@ -108,7 +107,7 @@
    + data-mks='d4,d6,d8,a5'>
    All marked squares captures are playable from d2.
    @@ -120,8 +119,8 @@

    + data-fen='7k/8/8/3Qr3/8/8/8/K7 w 0' + data-mks="a5,b5,c5">
    1.Qa5, 1.Qb5 or 1.Qc5 captures the black rook.
    @@ -141,8 +140,8 @@

    + data-fen='7k/8/8/r3pP2/2n5/8/B7/K7 w 0' + data-mks="a5,c4">
    1.Bd5 captures the two marked pieces.
    @@ -166,8 +165,8 @@

    + data-fen='7k/8/8/p4r/4K3/8/8/8 w 0' + data-mks="e5">
    1.Ke5 is impossible
    diff --git a/variants/Baroque/rules.html b/variants/Baroque/rules.html index 0e30307..ec5bb30 100644 --- a/variants/Baroque/rules.html +++ b/variants/Baroque/rules.html @@ -6,8 +6,10 @@

    The goal is still to checkmate.

    - - Full rules description. - +

    + + Full rules description. + +

    Robert Abbott (1963).

    diff --git a/variants/Benedict/rules.html b/variants/Benedict/rules.html index db103a1..c2798b3 100644 --- a/variants/Benedict/rules.html +++ b/variants/Benedict/rules.html @@ -10,8 +10,10 @@ where only the queen can change the color of enemy pieces.

    - - chessvariants page. - +

    + + chessvariants page. + +

    William Daniel Troyka (2001).

    diff --git a/variants/Berolina/rules.html b/variants/Berolina/rules.html index bfa1cca..1824b27 100644 --- a/variants/Berolina/rules.html +++ b/variants/Berolina/rules.html @@ -1,3 +1,7 @@ -

    Pawns movements are reversed: they capture forward, and move diagonally. From the initial rank they can move two squares in diagonal. See also.

    +

    + Pawns movements are reversed: they capture forward, and move diagonally. + From the initial rank they can move two squares in diagonal. + See also. +

    Edmund Nebermann (1926).

    diff --git a/variants/Cannibal/rules.html b/variants/Cannibal/rules.html index 480b5cf..81d9c58 100644 --- a/variants/Cannibal/rules.html +++ b/variants/Cannibal/rules.html @@ -1,5 +1,7 @@

    After each capture, the capturer transforms into the captured piece.

    - - chessvariants page. - +

    + + chessvariants page. + +

    diff --git a/variants/Chakart/complete_rules.html b/variants/Chakart/complete_rules.html index 7bf3080..d1c8fd6 100644 --- a/variants/Chakart/complete_rules.html +++ b/variants/Chakart/complete_rules.html @@ -5,7 +5,6 @@ -

    Chakart Rules

    diff --git a/variants/Chakart/rules.html b/variants/Chakart/rules.html index d45cb0d..e125478 100644 --- a/variants/Chakart/rules.html +++ b/variants/Chakart/rules.html @@ -10,8 +10,10 @@
  • Eggs hide either a bonus or malus: see full description.
  • - - Full rules description. - +

    + + Full rules description. + +

    Charlotte Blard & Benjamin Auder (2020).

    diff --git a/variants/Checkered/complete_rules.html b/variants/Checkered/complete_rules.html index 5f21663..503e78d 100644 --- a/variants/Checkered/complete_rules.html +++ b/variants/Checkered/complete_rules.html @@ -6,7 +6,6 @@ -

    Checkered Rules

    @@ -15,12 +14,12 @@ The capture of an enemy piece produces a new "checkered" piece belonging to both players.

    -
    - - - - - +
    + + + + +
    Checkered pieces, born after captures.

    Note: the initial French name for this variant is "l'Échiqueté".

    @@ -52,8 +51,10 @@
  • Checkered pieces cannot be captured.
  • -
    -
    fen:2kr4/pp6/2p5/4ss1r/1P2ns1P/2Np4/P1P1P1BP/R2o1RK1:
    +
    +
    +
    Black plays Rxh4=P. (Checkered pawn to) h5 is allowed then, because piece's nature changed. diff --git a/variants/Checkered/rules.html b/variants/Checkered/rules.html index 892f352..a9209dd 100644 --- a/variants/Checkered/rules.html +++ b/variants/Checkered/rules.html @@ -3,8 +3,10 @@ Checkered moves cannot be undone on next turn.

    - - Full rules description. - +

    + + Full rules description. + +

    Patrick Bernier (2012).

    diff --git a/variants/Chess960/rules.html b/variants/Chess960/rules.html index 776fa4a..5192abe 100644 --- a/variants/Chess960/rules.html +++ b/variants/Chess960/rules.html @@ -1,3 +1,5 @@ - - Orthodox chess rules. - +

    + + Orthodox chess rules. + +

    diff --git a/variants/Circular/rules.html b/variants/Circular/rules.html index 6db9dd8..f9067b7 100644 --- a/variants/Circular/rules.html +++ b/variants/Circular/rules.html @@ -1,4 +1,4 @@

    -Lower and upper sides of the board communicate.
    + Lower and upper sides of the board communicate.
    All pawns move forward (up).

    diff --git a/variants/Clorange/rules.html b/variants/Clorange/rules.html index f10e7f6..541862e 100644 --- a/variants/Clorange/rules.html +++ b/variants/Clorange/rules.html @@ -1,8 +1,12 @@ -

    Captured pieces can be landed later in a non-capturing form;
    -they regain their ability to capture when captured again.

    +

    + Captured pieces can be landed later in a non-capturing form;
    + they regain their ability to capture when captured again. +

    - - chessvariants page. - +

    + + chessvariants page. + +

    Fergus Duniho (1999).

    diff --git a/variants/Copycat/rules.html b/variants/Copycat/rules.html index 43d1f25..230d353 100644 --- a/variants/Copycat/rules.html +++ b/variants/Copycat/rules.html @@ -3,6 +3,10 @@ it borrows powers from it and can move (and capture) like it.

    -

    Students from the UCF Chess Club (2020).

    +

    + Students from the + UCF Chess Club + (2020). +

    See also their Discord server :-)

    diff --git a/variants/Crazyhouse/rules.html b/variants/Crazyhouse/rules.html index 148015a..f4d239f 100644 --- a/variants/Crazyhouse/rules.html +++ b/variants/Crazyhouse/rules.html @@ -2,6 +2,8 @@

    Promoted pawns return on the board as pawns.

    - - lichess page. - +

    + + lichess page. + +

    diff --git a/variants/Cwda/complete_rules.html b/variants/Cwda/complete_rules.html index 9114c05..2276050 100644 --- a/variants/Cwda/complete_rules.html +++ b/variants/Cwda/complete_rules.html @@ -5,7 +5,6 @@ -

    Different Armies Rules

    @@ -30,7 +29,12 @@

    The Colorbound Clobberers

    -
    +
    + + + + +
    • Rook = bishop + dabbabah = "bede" (D),
    • @@ -53,8 +57,11 @@
    -
    -
    fen:8/8/8/3F4/8/8/8/8 b7,c6,b5,f5,d3,d7,b3,c4,e4,f3,e6,f7:
    +
    +
    +
    Moves of the Fad.
    @@ -67,7 +74,12 @@

    The Nutty Knights

    -
    +
    + + + + +
    • Rook = rook forward and sideways + king backwards = "charging rook" (G),
    • @@ -79,17 +91,29 @@
    • Queen = rook forward and sideways + knight forward + king = "colonel" (L).
    -
    -
    fen:8/8/8/8/3G4/8/8/8 d5,d6,d7,d8,c4,b4,a4,e4,f4,g4,h4,c3,d3,e3:
    -
    fen:8/8/8/8/4i3/8/8/8 d6,d2,f6,f2,d3,d5,f5,f3:
    +
    +
    +
    +
    +
    Moves of the Charging rook on the left, and of the Fibnif on the right.
    -
    -
    fen:8/8/8/8/3T4/8/8/8 b5,c6,e6,f5,c4,e4,c3,d3,e3:
    -
    fen:8/8/8/8/4c3/8/8/8 e5,e6,e7,e8,d4,c4,b4,a4,f4,g4,h4,d6,c5,f6,g5,d5,f5,d3,e3,f3:
    +
    +
    +
    +
    +
    Moves of the Charging knight on the left, and of the Colonel on the right.
    @@ -97,7 +121,12 @@

    The Remarkable Rookies

    -
    +
    + + + + +
    • Rook = rook limited to 4 squares = "short rook" (S),
    • @@ -106,9 +135,15 @@
    • Queen = rook + knight = "chancellor" (O).
    -
    -
    fen:8/8/8/3y4/8/8/8/8 d3,b5,d7,f5,c5,d6,e5,d4:
    -
    fen:8/8/8/4H3/8/8/8/8 c5,e7,g5,e3,b5,e8,h5,e2,d4,d6,f6,f4:
    +
    +
    +
    +
    +
    Moves of the Woody rook on the left, and of the Half-duck on the right.
    @@ -120,7 +155,12 @@

    Source

    -

    Chess with different armies on chessvariants.com.

    +

    + + Chess with different armies + + on chessvariants.com. +

    diff --git a/variants/Cwda/rules.html b/variants/Cwda/rules.html index cbd2d72..dac6d17 100644 --- a/variants/Cwda/rules.html +++ b/variants/Cwda/rules.html @@ -5,8 +5,10 @@ .

    - - Full rules description. - +

    + + Full rules description. + +

    Ralph Betza (1996).

    diff --git a/variants/Dark/rules.html b/variants/Dark/rules.html index 137a626..66d2828 100644 --- a/variants/Dark/rules.html +++ b/variants/Dark/rules.html @@ -2,8 +2,10 @@

    Win by capturing the enemy king.

    - - Wikipedia page. - +

    + + Wikipedia page. + +

    Jens Baek Nielsen (1997).

    diff --git a/variants/Doublemove/rules.html b/variants/Doublemove/rules.html index 5ac21d4..2a74cbf 100644 --- a/variants/Doublemove/rules.html +++ b/variants/Doublemove/rules.html @@ -1,7 +1,9 @@

    After the initial white move, each player moves twice on each turn.

    - - chessvariants page. - +

    + + chessvariants page. + +

    Albert Fortis (1922).

    diff --git a/variants/Giveaway/rules.html b/variants/Giveaway/rules.html index 3e257bd..54e40aa 100644 --- a/variants/Giveaway/rules.html +++ b/variants/Giveaway/rules.html @@ -1,5 +1,7 @@

    Win by losing all your material, or get stalemated.

    - - lichess page. - +

    + + lichess page. + +

    diff --git a/variants/Hex/rules.html b/variants/Hex/rules.html index 15a91b1..b4d7628 100644 --- a/variants/Hex/rules.html +++ b/variants/Hex/rules.html @@ -1,11 +1,15 @@

    Win by connecting both edges of your color.

    - - Detailed rules. - +

    + + Detailed rules. + +

    - - A Strategy Guide. - +

    + + A Strategy Guide. + +

    Piet Hein (1942).

    diff --git a/variants/Madrasi/rules.html b/variants/Madrasi/rules.html index 741869c..96627ff 100644 --- a/variants/Madrasi/rules.html +++ b/variants/Madrasi/rules.html @@ -1,7 +1,9 @@

    Pieces of same nature attacking each other are immobilized.

    - - Wikipedia page. - +

    + + Wikipedia page. + +

    Abdul J. Karwathar (1979).

    diff --git a/variants/Progressive/rules.html b/variants/Progressive/rules.html index 0521495..b957f45 100644 --- a/variants/Progressive/rules.html +++ b/variants/Progressive/rules.html @@ -3,6 +3,8 @@ then White play 3, and so on.

    - - Wikipedia page. - +

    + + Wikipedia page. + +

    diff --git a/variants/Recycle/rules.html b/variants/Recycle/rules.html index ceea70c..badd18b 100644 --- a/variants/Recycle/rules.html +++ b/variants/Recycle/rules.html @@ -3,8 +3,10 @@ can be self-captured and dropped later in the game.

    - - chessvariants page. - +

    + + chessvariants page. + +

    Robert Huber (2000).

    diff --git a/variants/Refusal/rules.html b/variants/Refusal/rules.html index 5c0b533..0eadaef 100644 --- a/variants/Refusal/rules.html +++ b/variants/Refusal/rules.html @@ -3,8 +3,10 @@ Different pawn promotions count as different moves.

    - - chessvariants page. - +

    + + chessvariants page. + +

    Fred Galvin (1958).

    diff --git a/variants/Rifle/rules.html b/variants/Rifle/rules.html index 650264b..79084a5 100644 --- a/variants/Rifle/rules.html +++ b/variants/Rifle/rules.html @@ -1,7 +1,9 @@

    Pieces capture (as usual) without moving.

    - - chessvariants page. - +

    + + chessvariants page. + +

    William Buehler Seabrook (1921).

    diff --git a/variants/Suction/rules.html b/variants/Suction/rules.html index a9cfb2e..9ca71e4 100644 --- a/variants/Suction/rules.html +++ b/variants/Suction/rules.html @@ -5,8 +5,10 @@

    Win by bringing the enemy king on your first rank.

    - - chessvariants page. - +

    + + chessvariants page. + +

    Nathaniel Virgo (2018).

    diff --git a/variants/_Antiking/rules.html b/variants/_Antiking/rules.html index e850c5e..e52edbb 100644 --- a/variants/_Antiking/rules.html +++ b/variants/_Antiking/rules.html @@ -18,8 +18,10 @@ - - chessvariants page. - +

    + + chessvariants page. + +

    Peter Aronson (2002).