From: Benjamin Auder Date: Fri, 7 Feb 2020 14:08:06 +0000 (+0100) Subject: 'update' X-Git-Url: https://git.auder.net/images/doc/html/packages.html?a=commitdiff_plain;h=4f298adbee00942323fc7ec517117552aeb5a08a;p=vchess.git 'update' --- diff --git a/client/public/images/pieces/_originals/Chess_Alt26.svg b/client/public/images/pieces/_originals/Chess_Alt26.svg deleted file mode 100644 index beeaaea1..00000000 --- a/client/public/images/pieces/_originals/Chess_Alt26.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - diff --git a/client/public/images/pieces/_originals/Chess_Gdt45.svg b/client/public/images/pieces/_originals/Chess_Gdt45.svg deleted file mode 100644 index 04978c83..00000000 --- a/client/public/images/pieces/_originals/Chess_Gdt45.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Giraffe - - - - - - - - - - - - - - - diff --git a/client/public/images/pieces/_originals/Chess_Gll45.svg b/client/public/images/pieces/_originals/Chess_Gll45.svg deleted file mode 100644 index 6011209c..00000000 --- a/client/public/images/pieces/_originals/Chess_Gll45.svg +++ /dev/null @@ -1,21 +0,0 @@ - - - - - Giraffe - - - - - - - - - - - - - - - - diff --git a/client/public/images/pieces/_originals/Chess_Ult45.svg b/client/public/images/pieces/_originals/Chess_Ult45.svg deleted file mode 100644 index 644d6e82..00000000 --- a/client/public/images/pieces/_originals/Chess_Ult45.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - Unicorn - - - - - - - - diff --git a/client/public/images/pieces/_originals/Chess_Zdl45.svg b/client/public/images/pieces/_originals/Chess_Zdl45.svg deleted file mode 100644 index c924f0bf..00000000 --- a/client/public/images/pieces/_originals/Chess_Zdl45.svg +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/client/public/images/pieces/_originals/Chess_Zll45.svg b/client/public/images/pieces/_originals/Chess_Zll45.svg deleted file mode 100644 index 35149c06..00000000 --- a/client/public/images/pieces/_originals/Chess_Zll45.svg +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/client/public/images/pieces/_originals/Chess_adt45.svg b/client/public/images/pieces/_originals/Chess_adt45.svg deleted file mode 100644 index afc27f05..00000000 --- a/client/public/images/pieces/_originals/Chess_adt45.svg +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - diff --git a/client/public/images/pieces/_originals/Chess_alt45.svg b/client/public/images/pieces/_originals/Chess_alt45.svg deleted file mode 100644 index b45ea509..00000000 --- a/client/public/images/pieces/_originals/Chess_alt45.svg +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - diff --git a/client/public/images/pieces/_originals/Chess_clt45.svg b/client/public/images/pieces/_originals/Chess_clt45.svg deleted file mode 100644 index fd0288db..00000000 --- a/client/public/images/pieces/_originals/Chess_clt45.svg +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/client/public/images/pieces/_originals/camel-animal-pet-desert-39f82768c72363eb.svg b/client/public/images/pieces/_originals/camel-animal-pet-desert-39f82768c72363eb.svg deleted file mode 100644 index 233a4f59..00000000 --- a/client/public/images/pieces/_originals/camel-animal-pet-desert-39f82768c72363eb.svg +++ /dev/null @@ -1 +0,0 @@ -Dinosoft Labs \ No newline at end of file diff --git a/client/public/images/pieces/_originals/camel-animal-pet-desert-3f04e77f40eba40d.svg b/client/public/images/pieces/_originals/camel-animal-pet-desert-3f04e77f40eba40d.svg deleted file mode 100644 index 9a5ab39b..00000000 --- a/client/public/images/pieces/_originals/camel-animal-pet-desert-3f04e77f40eba40d.svg +++ /dev/null @@ -1 +0,0 @@ -Dinosoft Labs \ No newline at end of file diff --git a/client/public/images/pieces/_originals/camel-animal-wildlife-34b2662eb81cfec3.svg b/client/public/images/pieces/_originals/camel-animal-wildlife-34b2662eb81cfec3.svg deleted file mode 100644 index a67f271b..00000000 --- a/client/public/images/pieces/_originals/camel-animal-wildlife-34b2662eb81cfec3.svg +++ /dev/null @@ -1,27 +0,0 @@ - - - - 20 -Camel- (Solid) - Created with Sketch. - - - - - - - - - - - - - - - - - Smashicons . - - - - - diff --git a/client/public/images/pieces/_originals/camel-animal-wildlife-3b15afb5e788b9ec.svg b/client/public/images/pieces/_originals/camel-animal-wildlife-3b15afb5e788b9ec.svg deleted file mode 100644 index bc2b0301..00000000 --- a/client/public/images/pieces/_originals/camel-animal-wildlife-3b15afb5e788b9ec.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - 20 -Camel- (Outline) - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - Smashicons . - - - - - diff --git a/client/public/images/pieces/_originals/unicorn-myth-legend-halloween-fantasy-37ec614cb63bc127.svg b/client/public/images/pieces/_originals/unicorn-myth-legend-halloween-fantasy-37ec614cb63bc127.svg deleted file mode 100644 index c9e930bd..00000000 --- a/client/public/images/pieces/_originals/unicorn-myth-legend-halloween-fantasy-37ec614cb63bc127.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - Nikita Golubev - - - - - diff --git a/client/public/images/pieces/_originals/wildebeest-animal-wild-wildlife-face-326845431b848a31.svg b/client/public/images/pieces/_originals/wildebeest-animal-wild-wildlife-face-326845431b848a31.svg deleted file mode 100644 index 21a3c9a2..00000000 --- a/client/public/images/pieces/_originals/wildebeest-animal-wild-wildlife-face-326845431b848a31.svg +++ /dev/null @@ -1 +0,0 @@ -Madeby Grids \ No newline at end of file diff --git a/client/public/images/pieces/_originals/wildebeest-animal-wildlife-31b7b8fe2ffee150.svg b/client/public/images/pieces/_originals/wildebeest-animal-wildlife-31b7b8fe2ffee150.svg deleted file mode 100644 index 54020bfa..00000000 --- a/client/public/images/pieces/_originals/wildebeest-animal-wildlife-31b7b8fe2ffee150.svg +++ /dev/null @@ -1 +0,0 @@ -Madeby Grids \ No newline at end of file diff --git a/client/public/images/tmp_checkered/README b/client/public/images/tmp_checkered/README deleted file mode 100644 index aac1f828..00000000 --- a/client/public/images/tmp_checkered/README +++ /dev/null @@ -1,2 +0,0 @@ -Initial PNG images designed by Patrick Bernier, -from a model found online (cannot remember where, sorry) diff --git a/client/public/images/tmp_checkered/cb.png b/client/public/images/tmp_checkered/cb.png deleted file mode 100644 index 4b083b32..00000000 --- a/client/public/images/tmp_checkered/cb.png +++ /dev/null @@ -1 +0,0 @@ -#$# git-fat bf0baedc348360c1bcc55b5b097f33455282cfe3 1190 diff --git a/client/public/images/tmp_checkered/cn.png b/client/public/images/tmp_checkered/cn.png deleted file mode 100644 index da66450b..00000000 --- a/client/public/images/tmp_checkered/cn.png +++ /dev/null @@ -1 +0,0 @@ -#$# git-fat c51c0fb1ada5645f4a51d64a4ddd6c835489cacf 1269 diff --git a/client/public/images/tmp_checkered/cp.png b/client/public/images/tmp_checkered/cp.png deleted file mode 100644 index 1a40e283..00000000 --- a/client/public/images/tmp_checkered/cp.png +++ /dev/null @@ -1 +0,0 @@ -#$# git-fat df06caec58e7d04178841eff04abe8c5241273c1 837 diff --git a/client/public/images/tmp_checkered/cq.png b/client/public/images/tmp_checkered/cq.png deleted file mode 100644 index 7abbafc4..00000000 --- a/client/public/images/tmp_checkered/cq.png +++ /dev/null @@ -1 +0,0 @@ -#$# git-fat f0820c65df52f4b1152d1e409eb0a31818e456f7 1573 diff --git a/client/public/images/tmp_checkered/cr.png b/client/public/images/tmp_checkered/cr.png deleted file mode 100644 index b140ac89..00000000 --- a/client/public/images/tmp_checkered/cr.png +++ /dev/null @@ -1 +0,0 @@ -#$# git-fat 8690188261dce5f318ce58fb7a653241be328cc4 734 diff --git a/client/public/images/tmp_checkered/no_ck.png b/client/public/images/tmp_checkered/no_ck.png deleted file mode 100644 index eab00a8c..00000000 --- a/client/public/images/tmp_checkered/no_ck.png +++ /dev/null @@ -1 +0,0 @@ -#$# git-fat c69fae7f8cc34d22b0be52be43f532e89d4397a2 2099 diff --git a/client/public/index.html b/client/public/index.html index 12eb803b..ab456c20 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -20,8 +20,5 @@
- diff --git a/client/src/data/challengeCheck.js b/client/src/data/challengeCheck.js index 1a8b9fee..db205ac7 100644 --- a/client/src/data/challengeCheck.js +++ b/client/src/data/challengeCheck.js @@ -13,7 +13,7 @@ export function checkChallenge(c) // Basic alphanumeric check for opponent name if (!!c.to) { - // TODO: slightly redundant (see data/userCheck.js) + // NOTE: slightly redundant (see data/userCheck.js) if (!c.to.match(/^[\w]+$/)) return "Wrong characters in opponent name"; } diff --git a/client/src/translations/rules/Checkered/en.pug b/client/src/translations/rules/Checkered/en.pug index 147e36a6..befc6cb1 100644 --- a/client/src/translations/rules/Checkered/en.pug +++ b/client/src/translations/rules/Checkered/en.pug @@ -2,13 +2,12 @@ p.boxed | The capture of an enemy piece produces a new "checkered" piece belonging | to both players. -figure.showPieces.center-align - img(src="/images/tmp_checkered/cp.png") - img(src="/images/tmp_checkered/cr.png") - img(src="/images/tmp_checkered/cn.png") - img(src="/images/tmp_checkered/cb.png") - img(src="/images/tmp_checkered/cq.png") - img(src="/images/tmp_checkered/no_ck.png") +figure.showPieces.text-center + img(src="/images/pieces/Checkered/cp.svg") + img(src="/images/pieces/Checkered/cr.svg") + img(src="/images/pieces/Checkered/cn.svg") + img(src="/images/pieces/Checkered/cb.svg") + img(src="/images/pieces/Checkered/cq.svg") figcaption Checkered pieces, born after captures. p Note: the initial French name for this variant is "l'Échiqueté". diff --git a/client/src/translations/rules/Checkered/fr.pug b/client/src/translations/rules/Checkered/fr.pug index a4ad3e66..163b0172 100644 --- a/client/src/translations/rules/Checkered/fr.pug +++ b/client/src/translations/rules/Checkered/fr.pug @@ -2,13 +2,12 @@ p.boxed | La capture d'une pièce ennemie donne lieu à la naissance d'une pièce | "échiquetée", qui appartient aux deux camps. -figure.showPieces.center-align - img(src="/images/tmp_checkered/cp.png") - img(src="/images/tmp_checkered/cr.png") - img(src="/images/tmp_checkered/cn.png") - img(src="/images/tmp_checkered/cb.png") - img(src="/images/tmp_checkered/cq.png") - img(src="/images/tmp_checkered/no_ck.png") +figure.showPieces.text-center + img(src="/images/pieces/Checkered/cp.svg") + img(src="/images/pieces/Checkered/cr.svg") + img(src="/images/pieces/Checkered/cn.svg") + img(src="/images/pieces/Checkered/cb.svg") + img(src="/images/pieces/Checkered/cq.svg") figcaption Pièces échiquetées, nées suite aux captures. p. diff --git a/client/src/utils/ajax.js b/client/src/utils/ajax.js index adfba467..86925b03 100644 --- a/client/src/utils/ajax.js +++ b/client/src/utils/ajax.js @@ -57,7 +57,7 @@ export function ajax(url, method, data, success, error) } xhr.open(method, params.serverUrl + url, true); xhr.setRequestHeader('X-Requested-With', "XMLHttpRequest"); - // Next line to allow cross-domain cookies in dev mode (TODO: if...) + // Next line to allow cross-domain cookies in dev mode if (params.cors) xhr.withCredentials = true; if (["POST","PUT"].includes(method)) diff --git a/client/src/utils/gameStorage.js b/client/src/utils/gameStorage.js index bf5dfba4..05aaef74 100644 --- a/client/src/utils/gameStorage.js +++ b/client/src/utils/gameStorage.js @@ -48,7 +48,6 @@ function dbOperation(callback) export const GameStorage = { // Optional callback to get error status - // TODO: this func called from Hall seems to not work now... add: function(game, callback) { dbOperation((db) => { diff --git a/client/src/variants/Atomic.js b/client/src/variants/Atomic.js index f42d593f..3d4f541f 100644 --- a/client/src/variants/Atomic.js +++ b/client/src/variants/Atomic.js @@ -10,7 +10,7 @@ export const VariantRules = class AtomicRules extends ChessRules moves.forEach(m => { if (m.vanish.length > 1 && m.appear.length <= 1) //avoid castles { - // Explosion! TODO(?): drop moves which explode our king here + // Explosion! OPTION (TODO?): drop moves which explode our king here let steps = [ [-1,-1],[-1,0],[-1,1],[0,-1],[0,1],[1,-1],[1,0],[1,1] ]; for (let step of steps) { diff --git a/client/src/variants/Baroque.js b/client/src/variants/Baroque.js index 88c993a9..5ac9a011 100644 --- a/client/src/variants/Baroque.js +++ b/client/src/variants/Baroque.js @@ -532,7 +532,6 @@ export const VariantRules = class BaroqueRules extends ChessRules static get VALUES() { - // TODO: totally experimental! return { 'p': 1, 'r': 2, @@ -544,7 +543,7 @@ export const VariantRules = class BaroqueRules extends ChessRules }; } - static get SEARCH_DEPTH() { return 2; } //TODO? + static get SEARCH_DEPTH() { return 2; } static GenRandInitFen() { diff --git a/client/src/variants/Zen.js b/client/src/variants/Zen.js index b8ce0713..256b80dc 100644 --- a/client/src/variants/Zen.js +++ b/client/src/variants/Zen.js @@ -216,7 +216,6 @@ export const VariantRules = class ZenRules extends ChessRules static get VALUES() { - // TODO: experimental return { 'p': 1, 'r': 3,