From: Benjamin Auder Date: Sun, 24 Jul 2022 21:40:46 +0000 (+0200) Subject: Rather name Go game Weiqi X-Git-Url: https://git.auder.net/doc/html/%7B%7B%20path%28%27fos_user_registration_register%27%29%20%7D%7D?a=commitdiff_plain;h=3cc4a84559092337d916c83367a6b457d6ca2b02;p=xogo.git Rather name Go game Weiqi --- diff --git a/variants.js b/variants.js index e5df230..7c51fcd 100644 --- a/variants.js +++ b/variants.js @@ -19,13 +19,12 @@ const variants = [ {name: "Balanced", desc: "balanced chess"}, {name: 'Baroque', desc: 'Exotic captures'}, {name: "Benedict", desc: "Change colors"}, -// {name: 'Berolina', desc: 'Pawns move diagonally'}, + {name: 'Berolina', desc: 'Pawns move diagonally'}, // {name: 'Bicolour', desc: 'Harassed kings'}, // {name: 'Brotherhood', desc: 'Friendly pieces'}, {name: 'Cannibal', desc: 'Capture powers'}, // {name: 'Capablanca', desc: 'Capablanca Chess', disp: 'Capablanca Chess'}, {name: 'Capture', desc: 'Mandatory captures'}, -// {name: 'Castle', desc: 'Win by castling long'}, {name: 'Chakart', desc: 'Capture the princess'}, // {name: 'Checkered', desc: 'Shared pieces'}, // {name: 'Checkless', desc: 'No-check mode'}, @@ -149,6 +148,7 @@ const variants = [ // {name: 'Twokings', desc: 'Two kings', disp: 'Two Kings'}, // {name: 'Upsidedown', desc: 'Board upside down', disp: 'Upside-down'}, // {name: 'Vchess', desc: 'Pawns capture backward', disp: 'Victor Chess'}, + {name: 'Weiqi', desc: 'Surround territory'}, // {name: 'Wildebeest', desc: 'Balanced sliders & leapers'}, // {name: 'Wormhole', desc: 'Squares disappear'}, // {name: 'Xiangqi', desc: 'Chinese Chess'}, diff --git a/variants/Atarigo/class.js b/variants/Atarigo/class.js index 2cf9048..25873aa 100644 --- a/variants/Atarigo/class.js +++ b/variants/Atarigo/class.js @@ -1,12 +1,12 @@ -import GoRules from "/variants/Go/class.js"; +import GoRules from "/variants/Weiqi/class.js"; import Move from "/utils/Move.js"; import PiPo from "/utils/PiPo.js"; import {ArrayFun} from "/utils/array.js"; -export default class AtarigoRules extends GoRules { +export default class AtarigoRules extends WeiqiRules { static get Options() { - let input = GoRules.Options.input; + let input = WeiqiRules.Options.input; input[0].defaut = 11; return {input: input}; } diff --git a/variants/Atarigo/style.css b/variants/Atarigo/style.css index a2579d2..2eded01 100644 --- a/variants/Atarigo/style.css +++ b/variants/Atarigo/style.css @@ -1 +1 @@ -@import url("/variants/Go/style.css"); +@import url("/variants/Weiqi/style.css"); diff --git a/variants/Go/style.css b/variants/Go/style.css deleted file mode 100644 index 233a3a5..0000000 --- a/variants/Go/style.css +++ /dev/null @@ -1,10 +0,0 @@ -.chessboard_SVG { - background-color: #BA8C63; -} - -piece.white.stone { - background-image: url('/variants/Go/pieces/black_stone.svg'); -} -piece.black.stone { - background-image: url('/variants/Go/pieces/white_stone.svg'); -} diff --git a/variants/Go/class.js b/variants/Weiqi/class.js similarity index 98% rename from variants/Go/class.js rename to variants/Weiqi/class.js index b8b7780..e528719 100644 --- a/variants/Go/class.js +++ b/variants/Weiqi/class.js @@ -8,7 +8,7 @@ import Move from "/utils/Move.js"; import PiPo from "/utils/PiPo.js"; import {ArrayFun} from "/utils/array.js"; -export default class GoRules extends ChessRules { +export default class WeiqiRules extends ChessRules { // TODO: option oneColor (just alter pieces class of white stones) static get Options() { diff --git a/variants/Go/pieces/CREDITS b/variants/Weiqi/pieces/CREDITS similarity index 100% rename from variants/Go/pieces/CREDITS rename to variants/Weiqi/pieces/CREDITS diff --git a/variants/Go/pieces/black_stone.svg b/variants/Weiqi/pieces/black_stone.svg similarity index 100% rename from variants/Go/pieces/black_stone.svg rename to variants/Weiqi/pieces/black_stone.svg diff --git a/variants/Go/pieces/white_stone.svg b/variants/Weiqi/pieces/white_stone.svg similarity index 100% rename from variants/Go/pieces/white_stone.svg rename to variants/Weiqi/pieces/white_stone.svg diff --git a/variants/Go/rules.html b/variants/Weiqi/rules.html similarity index 100% rename from variants/Go/rules.html rename to variants/Weiqi/rules.html diff --git a/variants/Weiqi/style.css b/variants/Weiqi/style.css new file mode 100644 index 0000000..daf96e4 --- /dev/null +++ b/variants/Weiqi/style.css @@ -0,0 +1,10 @@ +.chessboard_SVG { + background-color: #BA8C63; +} + +piece.white.stone { + background-image: url('/variants/Weiqi/pieces/black_stone.svg'); +} +piece.black.stone { + background-image: url('/variants/Weiqi/pieces/white_stone.svg'); +}