From b406466b0f0ce67451f1718053e5f5691d6507fb Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Wed, 8 Apr 2020 18:58:31 +0200 Subject: [PATCH] Add Sittuyin + Doublemove2. A few fixes. TODO: fix Ambiguous bugs and playing on smartphone --- TODO | 82 +++- client/public/images/pieces/SOURCE | 3 +- client/public/images/pieces/Shatranj/bb.svg | 177 +++++++++ client/public/images/pieces/Shatranj/wb.svg | 201 ++++++++++ client/public/images/pieces/Sittuyin/bb.svg | 101 +++++ client/public/images/pieces/Sittuyin/bk.svg | 240 ++++++++++++ client/public/images/pieces/Sittuyin/bn.svg | 98 +++++ client/public/images/pieces/Sittuyin/bp.svg | 140 +++++++ client/public/images/pieces/Sittuyin/bq.svg | 146 +++++++ client/public/images/pieces/Sittuyin/br.svg | 125 ++++++ client/public/images/pieces/Sittuyin/wb.svg | 137 +++++++ client/public/images/pieces/Sittuyin/wk.svg | 367 ++++++++++++++++++ client/public/images/pieces/Sittuyin/wn.svg | 128 ++++++ client/public/images/pieces/Sittuyin/wp.svg | 206 ++++++++++ client/public/images/pieces/Sittuyin/wq.svg | 218 +++++++++++ client/public/images/pieces/Sittuyin/wr.svg | 203 ++++++++++ client/src/components/BaseGame.vue | 7 + client/src/components/Board.vue | 6 +- client/src/translations/en.js | 4 +- client/src/translations/es.js | 4 +- client/src/translations/fr.js | 4 +- client/src/translations/rules/Ball/en.pug | 15 +- client/src/translations/rules/Ball/es.pug | 11 +- client/src/translations/rules/Ball/fr.pug | 13 +- .../rules/{Marseille => Doublemove1}/en.pug | 0 .../rules/{Marseille => Doublemove1}/es.pug | 0 .../rules/{Marseille => Doublemove1}/fr.pug | 0 .../src/translations/rules/Doublemove2/en.pug | 52 +++ .../src/translations/rules/Doublemove2/es.pug | 54 +++ .../src/translations/rules/Doublemove2/fr.pug | 52 +++ client/src/translations/rules/Shatranj/en.pug | 3 - client/src/translations/rules/Shatranj/es.pug | 3 - client/src/translations/rules/Shatranj/fr.pug | 3 - client/src/translations/rules/Sittuyin/en.pug | 67 ++++ client/src/translations/rules/Sittuyin/es.pug | 70 ++++ client/src/translations/rules/Sittuyin/fr.pug | 69 ++++ client/src/translations/rules/Wormhole/en.pug | 7 +- client/src/translations/rules/Wormhole/es.pug | 7 +- client/src/translations/rules/Wormhole/fr.pug | 7 +- client/src/translations/rules/Zen/en.pug | 2 + client/src/translations/rules/Zen/es.pug | 2 + client/src/translations/rules/Zen/fr.pug | 2 + .../variants/{Marseille.js => Doublemove1.js} | 7 +- client/src/variants/Doublemove2.js | 257 ++++++++++++ client/src/variants/Shatranj.js | 5 + client/src/variants/Sittuyin.js | 317 +++++++++++++++ client/src/views/Problems.vue | 4 + server/db/populate.sql | 4 +- 48 files changed, 3589 insertions(+), 41 deletions(-) create mode 100644 client/public/images/pieces/Shatranj/bb.svg create mode 100644 client/public/images/pieces/Shatranj/wb.svg create mode 100644 client/public/images/pieces/Sittuyin/bb.svg create mode 100644 client/public/images/pieces/Sittuyin/bk.svg create mode 100644 client/public/images/pieces/Sittuyin/bn.svg create mode 100644 client/public/images/pieces/Sittuyin/bp.svg create mode 100644 client/public/images/pieces/Sittuyin/bq.svg create mode 100644 client/public/images/pieces/Sittuyin/br.svg create mode 100644 client/public/images/pieces/Sittuyin/wb.svg create mode 100644 client/public/images/pieces/Sittuyin/wk.svg create mode 100644 client/public/images/pieces/Sittuyin/wn.svg create mode 100644 client/public/images/pieces/Sittuyin/wp.svg create mode 100644 client/public/images/pieces/Sittuyin/wq.svg create mode 100644 client/public/images/pieces/Sittuyin/wr.svg rename client/src/translations/rules/{Marseille => Doublemove1}/en.pug (100%) rename client/src/translations/rules/{Marseille => Doublemove1}/es.pug (100%) rename client/src/translations/rules/{Marseille => Doublemove1}/fr.pug (100%) create mode 100644 client/src/translations/rules/Doublemove2/en.pug create mode 100644 client/src/translations/rules/Doublemove2/es.pug create mode 100644 client/src/translations/rules/Doublemove2/fr.pug create mode 100644 client/src/translations/rules/Sittuyin/en.pug create mode 100644 client/src/translations/rules/Sittuyin/es.pug create mode 100644 client/src/translations/rules/Sittuyin/fr.pug rename client/src/variants/{Marseille.js => Doublemove1.js} (96%) create mode 100644 client/src/variants/Doublemove2.js create mode 100644 client/src/variants/Sittuyin.js diff --git a/TODO b/TODO index 10862d85..411d1136 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,86 @@ +Grasshopper problem: 8/8/8/8/8/8/5gPp/5K1k w 0 iiii - V. Onitiu, Die Schwalbe 1929. ++ Wikipedia maybe https://en.wikipedia.org/wiki/Grasshopper_(chess) + +Shako, also known as UniEed Chess (Jean-Louis +Cazaux, 1990). Board 10x10; extra pieces are +Elephant (moves one or two squares +diagonally, may leap intervening square) and +Cannon (as above); CC on a1/j1 and a10/j10, +ERNBQKBNRE on ranks 2/9, 10xP on ranks +3/8. The name means chess in Esperanto. +(Cazaux) + +Shogi + Makruk/Thai chess --> see on Pychess + +Interesting: +Monochrome Chess (Proprietary game, +Looney Industries; Andrew Looney, 1996). +Usual men and array but pieces are all of the +same colour. A man is controlled by the player +in whose half of the board it stands. Thus after +e4-e5, the pawn changes sides and reverses +direction. When you capture (by definition, in +the opponent’s half) there can be no recapture +as the piece has changed sides. You may not +immediately reverse an opponent’s move. The +king has no royal powers but can castle. The +men are allocated points and the object is to +have the most points (in pieces captured) when +the game ends, which is usually when the +players agree or when one half of the board is +empty. Values: King=10, Queen=8, Rook=5, +Bishop=4, Knight=3, Pawn=1. A related game +Martian Chess is described in chapter 38. +(Proprietor’s rule sheet, Variant Chess 39) + Chakart :) +https://www.chessvariants.com/crossover.dir/koopachess.html + +Diamond Chess [Rynd] (J. A. +Porterfield Rynd, 1886) --> Berolina2 ? +https://www.chessvariants.com/rules/diamond-chess + +Bicolour Chess (Gabriel Authier, 1958). v1 et v2 : (Roméo Bédoni, 1958) +Kings are subject to check and checkmate by +own as well as opponent’s pieces. The Q and +QN are interchanged in the array +. +v2: y but a player may capture his +own men (TODO: only v2?) + +Koth : king of the hill, king cannot move into check, giving check is forbidden (no checkmate). + +Berolina Grid Chess, also known as +Gridolina (originator not noted). A +combination of Berolina and Grid Chess. +Better than Grid Chess since Berolina pawns +cross grid lines more easily. Described in +World Game Review 10 as the most popular of +the NOST combination games. (Nost-algia +150, also Nost-algia 112 ‘not seen’) +--> pourquoi pas, mais faudra pouvoir tracer des lignes sur plateau (Ball, Koth, Sittuyin, celle-là, Rococo) + +Contact (quoted by David Silverman, 1971). +White puts a knight on any square of an empty +chessboard. Black moves the knight and +places a marker on the square vacated. Play +alternates. The knight may only be moved to +vacant squares. The object is to make the last +move. The game can also be played with any +of the other pieces. (Your Move) + +https://www.chessvariants.com/diffmove.dir/checkers.html --> move forward (Multhopp) +in 1974 by Hans Multhopp +https://www.chessvariants.com/diffmove.dir/checkers.html + +Clockwork Orange Chess (Fergus Duniho, +1999). https://www.chessvariants.com/other.dir/clockworkorange.html +implem : pieces code, yellow/red, easy http://abrobecker.free.fr/chess/fairyblitz.htm#football Le gagnant est le premier joueur à marquer un but, càd celui qui arrive à installer une de ses pièces dans les cages adverses: d8,e8 pour les blancs et d1,e1 pour les noirs. +Recycle1 et Recycle2 (--> celle-là) http://abrobecker.free.fr/chess/fairyblitz.htm#deplaceurdevivants Philippe Rouzaud, Phénix 151-152, mai 2006): Un camp peut, à la place d'un coup orthodoxe, capturer une de ses pièces et replacer la pièce capturée immédiatement sur l'échiquier. Un roi peut rester en échec durant cette action. Une pièce déplacée sur l'échiquier peut mater. Un pion ne peut pas être déplacé en première ou dernière rangée. Un roi peut déplacer et être déplacé, y compris pour se soustraire à un échec. Le roque ne peut se faire que de manière orthodoxe. Rouzaud-Banaddou: 1.Fxb2 (=f5) Dxc7 (=e6) 2.fxe6 dxe6 3.Txb1 (=b5) Dxe7 (=c7) 4.Txb2 (=a3) Dxf7 (=d6) 5.Txg1 (=g5) Dxg7 (=f6) 6.Txf1 (=f7)+ Rxf8 (=h4) 7.Fxb2 (=e8) Rxg7 (=c5) 8.Rxd1 (=f8)+ Rxh8 (=g7) 9.Dxg8+ Txg8 10.Txg8# @@ -10,7 +88,3 @@ Rouzaud-Banaddou: 1.Fxb2 (=f5) Dxc7 (=e6) 2.fxe6 dxe6 3.Txb1 (=b5) Dxe7 (=c7) 4. http://abrobecker.free.fr/chess/fairyblitz.htm#madrasi Madrasi Chess, Abdul J. Karwathar, 1979): Deux pièces de même nature (excepté les rois) qui s'observent, se paralysent mutuellement en perdant tout pouvoir (déplacement, prise, donner échec ou mat) sauf celui de paralyser une autre pièce. 1.e4 e5 2.Cf3 Cc6 3.Fc4 Fc5 4.Cxe5 d6 5.d4 (5.Fxf7+ Rxf7 est légal; ou 5.Dh5 Fe6 immobilisant le Fc4) 5...Fxd4 6.Dxd4 dxe5 et la Dame blanche est perdue. - -Sittuyin (burmese chess) -https://github.com/gbtami/pychess-variants/tree/master/static/images/pieces/sittuyin -https://drive.google.com/open?id=1HIPJLJBU2F6R6vxGziU6j8MHoHu_Kmab diff --git a/client/public/images/pieces/SOURCE b/client/public/images/pieces/SOURCE index dca099c7..89cf2dbd 100644 --- a/client/public/images/pieces/SOURCE +++ b/client/public/images/pieces/SOURCE @@ -5,5 +5,6 @@ Some fairy pieces found on the web and icon scout: https://iconscout.com/ PNG images for Eightpieces from https://greenchess.net/index.php and Jeff Kubach design. Images of the Hawk and Elephant were designed by "Couch Tomato #2218" on Discord, for the pychess-variants website (http://pychess-variants.herokuapp.com/) -He also designed all the Horde pieces in Orda, and sent me the wizard and +He also designed all the Horde pieces in Orda, +the Sittuyin pieces set, and he sent me the wizard and champion SVG files as well (modified from Wikipedia) diff --git a/client/public/images/pieces/Shatranj/bb.svg b/client/public/images/pieces/Shatranj/bb.svg new file mode 100644 index 00000000..5868980b --- /dev/null +++ b/client/public/images/pieces/Shatranj/bb.svg @@ -0,0 +1,177 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Shatranj/wb.svg b/client/public/images/pieces/Shatranj/wb.svg new file mode 100644 index 00000000..05f8ffa8 --- /dev/null +++ b/client/public/images/pieces/Shatranj/wb.svg @@ -0,0 +1,201 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/bb.svg b/client/public/images/pieces/Sittuyin/bb.svg new file mode 100644 index 00000000..8384ada2 --- /dev/null +++ b/client/public/images/pieces/Sittuyin/bb.svg @@ -0,0 +1,101 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/bk.svg b/client/public/images/pieces/Sittuyin/bk.svg new file mode 100644 index 00000000..7ba487f4 --- /dev/null +++ b/client/public/images/pieces/Sittuyin/bk.svg @@ -0,0 +1,240 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/bn.svg b/client/public/images/pieces/Sittuyin/bn.svg new file mode 100644 index 00000000..95dbc650 --- /dev/null +++ b/client/public/images/pieces/Sittuyin/bn.svg @@ -0,0 +1,98 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/bp.svg b/client/public/images/pieces/Sittuyin/bp.svg new file mode 100644 index 00000000..b69d0deb --- /dev/null +++ b/client/public/images/pieces/Sittuyin/bp.svg @@ -0,0 +1,140 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/bq.svg b/client/public/images/pieces/Sittuyin/bq.svg new file mode 100644 index 00000000..2849f30c --- /dev/null +++ b/client/public/images/pieces/Sittuyin/bq.svg @@ -0,0 +1,146 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/br.svg b/client/public/images/pieces/Sittuyin/br.svg new file mode 100644 index 00000000..f261f505 --- /dev/null +++ b/client/public/images/pieces/Sittuyin/br.svg @@ -0,0 +1,125 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/wb.svg b/client/public/images/pieces/Sittuyin/wb.svg new file mode 100644 index 00000000..a2f78359 --- /dev/null +++ b/client/public/images/pieces/Sittuyin/wb.svg @@ -0,0 +1,137 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/wk.svg b/client/public/images/pieces/Sittuyin/wk.svg new file mode 100644 index 00000000..a8909412 --- /dev/null +++ b/client/public/images/pieces/Sittuyin/wk.svg @@ -0,0 +1,367 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/wn.svg b/client/public/images/pieces/Sittuyin/wn.svg new file mode 100644 index 00000000..3e30c4a3 --- /dev/null +++ b/client/public/images/pieces/Sittuyin/wn.svg @@ -0,0 +1,128 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/wp.svg b/client/public/images/pieces/Sittuyin/wp.svg new file mode 100644 index 00000000..8ddfbd9c --- /dev/null +++ b/client/public/images/pieces/Sittuyin/wp.svg @@ -0,0 +1,206 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/wq.svg b/client/public/images/pieces/Sittuyin/wq.svg new file mode 100644 index 00000000..9d1d29f6 --- /dev/null +++ b/client/public/images/pieces/Sittuyin/wq.svg @@ -0,0 +1,218 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/client/public/images/pieces/Sittuyin/wr.svg b/client/public/images/pieces/Sittuyin/wr.svg new file mode 100644 index 00000000..05026985 --- /dev/null +++ b/client/public/images/pieces/Sittuyin/wr.svg @@ -0,0 +1,203 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index ae6c128f..1a7e30fa 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -61,6 +61,13 @@ div#baseGame + +