X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=base_rules.js;h=34f0e7e13e6644134fada8aab2601ef4d05d7101;hb=3caec36fba44232e0d9157aadb9c06fdc4634c02;hp=9100173c2b17bf1b3d0044acdabbd63973ea74d9;hpb=f8b43ef764be4e90761aa20d99af79a7e1c32bdd;p=xogo.git diff --git a/base_rules.js b/base_rules.js index 9100173..34f0e7e 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;