}
}
+// TODO: for animation, moves should contains "moving" and "fading" maybe...
class Move
{
// o: {appear, vanish, [start,] [end,]}
for (let i of ['w','b'])
{
for (let j=0; j<2; j++)
- fen += this.castleFlags[i][j] ? '1' : '0';
+ fen += (this.castleFlags[i][j] ? '1' : '0');
}
return fen;
}