From eb2d61de8d569470fa329a484efe9bab420b2b82 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Thu, 8 Apr 2021 21:41:58 +0200 Subject: [PATCH] Experimental change: options replacing randomness (more general) --- TODO | 11 + client/public/images/pieces/Fugue/wl.svg | 19 +- client/src/App.vue | 4 - client/src/base_rules.js | 30 +- client/src/components/ChallengeList.vue | 13 +- client/src/components/ComputerGame.vue | 4 +- client/src/components/GameList.vue | 2 +- client/src/components/Settings.vue | 8 +- client/src/main.js | 4 +- client/src/store.js | 4 - client/src/translations/about/en.pug | 2 + client/src/translations/about/es.pug | 2 + client/src/translations/about/fr.pug | 2 + client/src/translations/en.js | 17 +- client/src/translations/es.js | 17 +- client/src/translations/fr.js | 17 +- .../rules/{Allmate1 => Allmate}/en.pug | 2 +- .../rules/{Allmate1 => Allmate}/es.pug | 2 +- .../rules/{Allmate1 => Allmate}/fr.pug | 2 +- client/src/translations/rules/Allmate2/en.pug | 22 - client/src/translations/rules/Allmate2/es.pug | 24 - client/src/translations/rules/Allmate2/fr.pug | 24 - .../rules/{Checkered1 => Checkered}/en.pug | 3 + .../rules/{Checkered1 => Checkered}/es.pug | 4 + .../rules/{Checkered1 => Checkered}/fr.pug | 4 + .../src/translations/rules/Checkered2/en.pug | 10 - .../src/translations/rules/Checkered2/es.pug | 10 - .../src/translations/rules/Checkered2/fr.pug | 10 - .../rules/{Chess => Chess960}/en.pug | 2 +- .../rules/{Chess => Chess960}/es.pug | 2 +- .../rules/{Chess => Chess960}/fr.pug | 2 +- .../src/variants/{Allmate1.js => Allmate.js} | 2 +- client/src/variants/Allmate2.js | 236 --------- .../variants/{Checkered1.js => Checkered.js} | 42 +- client/src/variants/Checkered2.js | 472 ------------------ client/src/variants/Chess.js | 1 - client/src/variants/Chess960.js | 23 + client/src/views/Analyse.vue | 3 +- client/src/views/Game.vue | 26 +- client/src/views/Hall.vue | 117 +++-- client/src/views/Rules.vue | 94 +++- client/src/views/Variants.vue | 4 +- server/db/create.sql | 4 +- server/db/populate.sql | 8 +- server/models/Challenge.js | 13 +- server/models/Game.js | 13 +- server/routes/challenges.js | 1 + 47 files changed, 375 insertions(+), 963 deletions(-) rename client/src/translations/rules/{Allmate1 => Allmate}/en.pug (95%) rename client/src/translations/rules/{Allmate1 => Allmate}/es.pug (99%) rename client/src/translations/rules/{Allmate1 => Allmate}/fr.pug (96%) delete mode 100644 client/src/translations/rules/Allmate2/en.pug delete mode 100644 client/src/translations/rules/Allmate2/es.pug delete mode 100644 client/src/translations/rules/Allmate2/fr.pug rename client/src/translations/rules/{Checkered1 => Checkered}/en.pug (97%) rename client/src/translations/rules/{Checkered1 => Checkered}/es.pug (97%) rename client/src/translations/rules/{Checkered1 => Checkered}/fr.pug (97%) delete mode 100644 client/src/translations/rules/Checkered2/en.pug delete mode 100644 client/src/translations/rules/Checkered2/es.pug delete mode 100644 client/src/translations/rules/Checkered2/fr.pug rename client/src/translations/rules/{Chess => Chess960}/en.pug (99%) rename client/src/translations/rules/{Chess => Chess960}/es.pug (99%) rename client/src/translations/rules/{Chess => Chess960}/fr.pug (99%) rename client/src/variants/{Allmate1.js => Allmate.js} (99%) delete mode 100644 client/src/variants/Allmate2.js rename client/src/variants/{Checkered1.js => Checkered.js} (95%) delete mode 100644 client/src/variants/Checkered2.js delete mode 120000 client/src/variants/Chess.js create mode 100644 client/src/variants/Chess960.js diff --git a/TODO b/TODO index d3b62270..924b6d0e 100644 --- a/TODO +++ b/TODO @@ -20,4 +20,15 @@ CWDA : need game options (also useful at least for Monster) PizzaKings https://www.chessvariants.com/unequal.dir/pizza-kings.html https://en.m.wikipedia.org/wiki/Chess_with_different_armies#Pizza_Kings%5B11%5D_(John_Lawson) +Coin Chess +https://msoworld.com/product/chess-variants/ +Background: Unknown inventor +Rules: +Normal rules apply except for the introduction of a coin (or counter) +Black starts by placing the coin on any unoccupied square. Play then continues with players alternating turns as in normal chess. +On their turn, a player makes any legal move but may not move onto the square where the coin has been placed. The player may move over (but not onto), the coin square. +The player ends their turn by leaving the coin where it stands or moving the coin to a different unoccupied square. +The coin can never be placed on an occupied square, and therefore cannot be used to protect a piece from capture +A player wins by checkmating the opponent. Note that the coin can be used to remove escape squares from the king. + https://www.chessvariants.com/other.dir/nemoroth.html :-) diff --git a/client/public/images/pieces/Fugue/wl.svg b/client/public/images/pieces/Fugue/wl.svg index d73d3bdb..cc2b9749 100644 --- a/client/public/images/pieces/Fugue/wl.svg +++ b/client/public/images/pieces/Fugue/wl.svg @@ -13,7 +13,7 @@ version="1.1" id="svg12" sodipodi:docname="wl.svg" - inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07, custom)"> + inkscape:version="1.0.2 (e86c870879, 2021-01-15)"> @@ -36,17 +36,18 @@ guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" - inkscape:window-width="1920" + inkscape:window-width="960" inkscape:window-height="1060" id="namedview14" showgrid="false" inkscape:zoom="1.7246094" inkscape:cx="256" - inkscape:cy="255.42016" + inkscape:cy="254.84032" inkscape:window-x="0" inkscape:window-y="20" inkscape:window-maximized="0" - inkscape:current-layer="svg12" /> + inkscape:current-layer="svg12" + inkscape:document-rotation="0" /> @@ -86,4 +87,14 @@ d="m 337.81831,445.85023 c -10.4388,-2.80716 -18.34008,-11.95076 -19.75585,-22.86208 -0.3099,-2.38844 -0.57152,-7.14629 -0.58136,-10.573 l -0.0179,-6.23038 2.94262,-3.62692 c 3.89557,-4.80148 8.76783,-12.99552 11.31926,-19.03639 3.94316,-9.33604 6.61242,-22.77207 6.61242,-33.28449 0,-3.51978 0.11123,-3.78972 3.5586,-8.63619 5.97066,-8.39384 12.04985,-15.26538 22.90012,-25.88492 18.58016,-18.18504 33.22365,-27.66968 49.66778,-32.16997 2.66295,-0.72877 3.59096,-1.30322 4.49161,-2.78035 2.51574,-4.12599 0.70172,-9.36723 -3.75061,-10.83664 -4.93204,-1.62772 -21.05317,4.81069 -34.44901,13.75814 -9.69646,6.47653 -16.23253,12.10004 -29.43403,25.32449 l -12.81849,12.84076 -0.37277,-7.36534 c -0.20502,-4.05093 -0.51019,-7.72345 -0.67815,-8.16114 -0.67475,-1.75837 15.29792,-17.9046 26.1136,-26.39736 18.48353,-14.51375 38.21698,-23.34861 52.15124,-23.34861 6.54713,0 10.13163,1.11515 13.08827,4.07179 2.89575,2.89576 4.15016,6.83571 4.13303,12.98141 -0.0522,18.7298 -14.70341,45.11564 -38.04471,68.51594 -9.49806,9.52206 -16.97344,15.60664 -28.544,23.23334 -8.35929,5.51 -10.87871,7.93729 -12.7369,12.2711 -4.26923,9.95703 0.0894,22.23736 9.5458,26.89528 l 2.72108,1.34031 37.97962,0.28993 c 36.08008,0.27541 38.06085,0.34497 39.60381,1.39075 3.07868,2.08662 4.02373,5.39369 2.42488,8.48553 -1.82084,3.52113 -1.18172,3.46007 -36.22011,3.46007 -35.03251,0 -35.03094,-1.5e-4 -36.79159,3.40457 -2.21954,4.29214 -0.22935,9.26049 4.20261,10.49143 1.27878,0.35517 10.71904,0.59487 23.5043,0.5968 l 21.36715,0.003 1.93729,1.93728 c 2.46615,2.46616 2.95099,4.36523 1.75687,6.88163 -1.96428,4.13942 0.28881,3.94194 -44.48849,3.89944 -33.22344,-0.0315 -40.75306,-0.18432 -43.33798,-0.87945 z" id="path26" transform="scale(0.1171875)" /> + + diff --git a/client/src/App.vue b/client/src/App.vue index 67dc225b..b17133d3 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -44,10 +44,6 @@ a.menuitem(href="https://github.com/yagu0/vchess") span {{ st.tr["Code"] }} img(src="/images/icons/github.svg") - //a.menuitem(href="https://www.facebook.com/Variants-Chess-Club-112565840437886") - img(src="/images/icons/facebook.svg") - //a.menuitem(href="https://twitter.com/VchessC") - img(src="/images/icons/twitter.svg")