X-Git-Url: https://git.auder.net/images/pieces/%22%20%20%20VariantRules.getPpath%28board%5Bi%5D%5Bj%5D%29%20%20%20%22.svg?a=blobdiff_plain;f=base_rules.js;h=9444e7bb3791590fc21d329fe3e160d2dc3dd1e4;hb=e5f9342704d2a453c3cd2f84e31b1ea384b2d03d;hp=9100173c2b17bf1b3d0044acdabbd63973ea74d9;hpb=f8b43ef764be4e90761aa20d99af79a7e1c32bdd;p=xogo.git diff --git a/base_rules.js b/base_rules.js index 9100173..9444e7b 100644 --- a/base_rules.js +++ b/base_rules.js @@ -7,6 +7,10 @@ import Move from "/utils/Move.js"; // NOTE: ChessRules is aliased as window.C, and variants as window.V export default class ChessRules { + static get Aliases() { + return [{'C': ChessRules}]; + } + ///////////////////////// // VARIANT SPECIFICATIONS @@ -380,8 +384,6 @@ export default class ChessRules { // Fen string fully describes the game state constructor(o) { - window.C = ChessRules; //easier alias - this.options = o.options; this.playerColor = o.color; this.afterPlay = o.afterPlay;