{
attrs: { id: "pgn-game" },
on: { click: this.download },
- domProps: {
- innerHTML: this.pgnTxt
- }
+ domProps: { innerHTML: this.pgnTxt }
+ }
+ )
+ ]
+ )
+ );
+ }
+ else if (this.mode != "idle")
+ {
+ // Show current FEN (at least for debug)
+ elementArray.push(
+ h('div',
+ { attrs: { id: "fen-div" } },
+ [
+ h('p',
+ {
+ attrs: { id: "fen-string" },
+ domProps: { innerHTML: this.vr.getBaseFen() }
}
)
]
p.
Note: the castling rule is more restrictive than described in the original rules.
- I have a feeling that the game is OK like that, but I may change this soon.
+ The game seems OK like that, but this may change soon enough.
h3 Credits