Rather name Go game Weiqi
authorBenjamin Auder <benjamin.auder@somewhere>
Sun, 24 Jul 2022 21:40:46 +0000 (23:40 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Sun, 24 Jul 2022 21:40:46 +0000 (23:40 +0200)
variants.js
variants/Atarigo/class.js
variants/Atarigo/style.css
variants/Go/style.css [deleted file]
variants/Weiqi/class.js [moved from variants/Go/class.js with 98% similarity]
variants/Weiqi/pieces/CREDITS [moved from variants/Go/pieces/CREDITS with 100% similarity]
variants/Weiqi/pieces/black_stone.svg [moved from variants/Go/pieces/black_stone.svg with 100% similarity]
variants/Weiqi/pieces/white_stone.svg [moved from variants/Go/pieces/white_stone.svg with 100% similarity]
variants/Weiqi/rules.html [moved from variants/Go/rules.html with 100% similarity]
variants/Weiqi/style.css [new file with mode: 0644]

index e5df230..7c51fcd 100644 (file)
@@ -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'},
index 2cf9048..25873aa 100644 (file)
@@ -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};
   }
index a2579d2..2eded01 100644 (file)
@@ -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 (file)
index 233a3a5..0000000
+++ /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');
-}
similarity index 98%
rename from variants/Go/class.js
rename to variants/Weiqi/class.js
index b8b7780..e528719 100644 (file)
@@ -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/Weiqi/style.css b/variants/Weiqi/style.css
new file mode 100644 (file)
index 0000000..daf96e4
--- /dev/null
@@ -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');
+}