From: Benjamin Auder Date: Thu, 22 Nov 2018 01:32:33 +0000 (+0100) Subject: Draft plan for easy Alice chess implementation X-Git-Url: https://git.auder.net/variants/DESCRIPTION?a=commitdiff_plain;h=a3eb4cc5131333f1ef08a3f41ba68692a7d6bb63;p=vchess.git Draft plan for easy Alice chess implementation --- diff --git a/public/javascripts/variants/Alice.js b/public/javascripts/variants/Alice.js index 673af088..cc7a4644 100644 --- a/public/javascripts/variants/Alice.js +++ b/public/javascripts/variants/Alice.js @@ -4,4 +4,9 @@ class AliceRules extends ChessRUles { return ""; //TODO } + + // Idee : this.board assigné tour à tour à board1, board2 + // board1 initialisé plein, board2 vide (via fen: s,t,u,o,c) + // coups cherchés suivant règles normales sur l'un puis l'autre + // puis au final filtre. } diff --git a/variants.js b/variants.js index 10367645..7aef900d 100644 --- a/variants.js +++ b/variants.js @@ -5,12 +5,11 @@ module.exports = [ { "name" : "Chess960", "description" : "Standard rules" }, { "name" : "Antiking", "description" : "Keep antiking in check" }, { "name" : "Magnetic", "description" : "Laws of attraction" }, -// { "name" : "Alice", "description" : "Both sides of the mirror" }, + { "name" : "Alice", "description" : "Both sides of the mirror" }, // { "name" : "Grand", "description" : "Big board" }, // { "name" : "Wildebeest", "description" : "Balanced sliders & leapers" }, // { "name" : "Loser", "description" : "Lose all pieces" }, // { "name" : "Crazyhouse", "description" : "Captures reborn" }, // { "name" : "Switching", "description" : "Exchange pieces positions" }, // { "name" : "Absorption", "description" : "Capture enhance movements" }, -// { "name" : "Dark", "description" : "In the fog" }, ]; diff --git a/views/index.pug b/views/index.pug index 9ec27a39..47e7de02 100644 --- a/views/index.pug +++ b/views/index.pug @@ -20,9 +20,7 @@ block content When you beat the bot easily consider playing human opponents! h3.blue.section Initial position p.section. - Whenever possible, all games start with a random assymetric position. - This might be unapplicable for some variants: Moscow Chess at least (coming soon), - Racing Kings probably too. + All games start with a random assymetric position. h3.blue.section Comments p.section. Games are untimed, and played anonymously. This website lacks a user/challenge/chat/... system,