From: Benjamin Auder Date: Wed, 6 Jan 2021 15:05:09 +0000 (+0100) Subject: Update TODO + 'simplify' download_objects script X-Git-Url: https://git.auder.net/img/app_dev.php/js/DESCRIPTION?a=commitdiff_plain;h=966e54d3d973ac1df2d368729019eb7caee31c8a;p=vchess.git Update TODO + 'simplify' download_objects script --- diff --git a/TODO b/TODO index 5f03a4dc..555f57dd 100644 --- a/TODO +++ b/TODO @@ -5,6 +5,7 @@ If new live game starts in background, "new game" notify OK but not first move. NEW VARIANTS: https://www.chessvariants.com/incinf.dir/bario.html https://www.pychess.org/variant/manchu +https://discord.com/channels/686736099959504907/687076968046395410/735678637432635473 + Amazon Chess https://www.pychess.org/variant/dobutsu https://musketeerchess.net/games/musketeer/index.php Attention règle de promotion + SVG / PNG https://musketeerchess.net/games/cerebral/rules/rules.php : from Titan, should be easy @@ -14,10 +15,6 @@ https://www.chessvariants.com/other.dir/fugue.html https://www.chessvariants.com/rules/spartan-chess https://www.chessvariants.com/mvopponent.dir/hypnotic-chess.html https://www.chessvariants.com/mvopponent.dir/mesmer-chess.html - -https://brainking.com/en/GameRules?tp=47&fwa=ArchivedGame!g=8204276$i=1 -related to: Crown Chess: place all units on move 1 (similar to Sittuyin, more freely --> in own half-board, possible pawns on 1st rank) - http://history.chess.free.fr/rollerball.htm Squatter Chess: safe on last rank = win Companion Chess : pieces of same nature don't attack each others @@ -33,7 +30,6 @@ https://www.jatektan.hu/_2018_vissza/2011_ig/uj2001/isakk1.html https://boardgamegeek.com/boardgame/18661/alapo Alapo is a strategy game. Each player owns twelve abstract pieces, two each of six different kinds. Round pieces move in any of the eight directions on the 6 by 6 board; square pieces move only orthogonally and triangular pieces only diagonally. Large pieces move any distance, small pieces only one field per turn. Opponent pieces can be eliminated by moving onto their position. The goal is to reach the opponent's base line with one of your pieces without the opponent being able to eliminate your piece in his/her next move. -https://discord.com/channels/686736099959504907/687076968046395410/735678637432635473 + Amazon Chess Maybe: https://www.chessvariants.com/diffmove.dir/asymmetric.html https://www.chessvariants.com/play/connected-chess diff --git a/client/README.md b/client/README.md index 1aa3c003..6c657db5 100644 --- a/client/README.md +++ b/client/README.md @@ -2,9 +2,12 @@ ## Project setup -Rename and edit src/parameters.js.dist into parameters.js. Then: +Rename and edit src/parameters.js.dist into parameters.js. Then, +download the folders and files listed in download\_objects file. +(This is optional, most variants will work without it). + +Finally install dependencies. ``` -./download_objects.sh npm install ``` diff --git a/client/download_objects b/client/download_objects new file mode 100644 index 00000000..9a2c1663 --- /dev/null +++ b/client/download_objects @@ -0,0 +1,22 @@ +# NOTES to restore binary files +# (They are normally retrieved using git-fat, but it won't work if I don't know you) + +* Full folders (these are supposed to be temporary) + +client/public/images/pieces/Eightpieces/tmp_png +client/public/images/pieces/Titan +client/public/images/pieces/Pacosako + +* And some files (permanent) + +client/public/variants/Empire/EagleMoves.png +client/public/variants/Empire/Board.png +client/public/variants/Xiangqi/HorseDiagram.png +client/public/variants/Xiangqi/Boards.png +client/public/variants/Xiangqi/ElephantDiagram.png +client/public/variants/Orda/Falcon.png +client/public/variants/Orda/Archer.png +client/public/variants/Orda/Orda.png +client/public/variants/Orda/Kheshig.png +client/public/variants/Orda/Lancer.png +client/public/variants/Orda/Yurt.png diff --git a/client/download_objects.sh b/client/download_objects.sh deleted file mode 100755 index 5ad81f5b..00000000 --- a/client/download_objects.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -# Restore binary files (temporary fix - should use git-fat instead) -for color in "w" "b"; do - for piece in "b" "c" "d" "e" "f" "g" "h" "j" "k" "m" "n" "o" "p" "q" "r" "s"; do - rm -f public/images/pieces/Eightpieces/tmp_png/"$color$piece".png - wget -q -O public/images/pieces/Eightpieces/tmp_png/"$color$piece".png https://vchess.club/images/pieces/Eightpieces/tmp_png/"$color$piece".png - done -done -for color in "w" "b"; do - for piece in "a" "c" "s" "t" "u" "v" "j" "l" "m" "o" "r" "n" "b" "q" "k"; do - rm -f public/images/pieces/Titan/"$color$piece".png - wget -q -O public/images/pieces/Titan/"$color$piece".png https://vchess.club/images/pieces/Titan/"$color$piece".png - done -done -for image in "Orda" "Archer" "Lancer" "Kheshig" "Yurt"; do - rm -f /public/images/variants/Orda/"$image".png - wget -q -O public/images/variants/Orda/"$image".png https://vchess.club/images/variants/Orda/"$image".png -done -rm -f public/sounds/newgame.flac -wget -q -O public/sounds/newgame.flac https://vchess.club/sounds/newgame.flac -rm -f public/favicon.ico -wget -q -O public/favicon.ico https://vchess.club/favicon.ico