projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 'undefined C' issue
[xogo.git]
/
base_rules.js
diff --git
a/base_rules.js
b/base_rules.js
index
9100173
..
9444e7b
100644
(file)
--- 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 {
// NOTE: ChessRules is aliased as window.C, and variants as window.V
export default class ChessRules {
+ static get Aliases() {
+ return [{'C': ChessRules}];
+ }
+
/////////////////////////
// VARIANT SPECIFICATIONS
/////////////////////////
// VARIANT SPECIFICATIONS
@@
-380,8
+384,6
@@
export default class ChessRules {
// Fen string fully describes the game state
constructor(o) {
// 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;
this.options = o.options;
this.playerColor = o.color;
this.afterPlay = o.afterPlay;