X-Git-Url: https://git.auder.net/?p=xogo.git;a=blobdiff_plain;f=base_rules.js;h=9444e7bb3791590fc21d329fe3e160d2dc3dd1e4;hp=9100173c2b17bf1b3d0044acdabbd63973ea74d9;hb=e5f9342704d2a453c3cd2f84e31b1ea384b2d03d;hpb=c4f9a79a31ee0305b18853616b3ee19ad4451a63 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;