Update TODO + 'simplify' download_objects script
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 6 Jan 2021 15:05:09 +0000 (16:05 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 6 Jan 2021 15:05:09 +0000 (16:05 +0100)
TODO
client/README.md
client/download_objects [new file with mode: 0644]
client/download_objects.sh [deleted file]

diff --git a/TODO b/TODO
index 5f03a4d..555f57d 100644 (file)
--- 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
index 1aa3c00..6c657db 100644 (file)
@@ -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 (file)
index 0000000..9a2c166
--- /dev/null
@@ -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 (executable)
index 5ad81f5..0000000
+++ /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