);
}
- static GenRandInitFen()
- {
- return ChessRules.GenRandInitFen() + " 0000000000";
- }
-
getFen()
{
return super.getFen() + " " + this.getCapturedFen();
getCapturedFen()
{
let counts = _.map(_.range(10), 0);
- for (let i=0; i<V.PIECES.length; i++)
+ for (let i=0; i<V.PIECES.length-1; i++) //-1: no king captured
{
counts[i] = this.captured["w"][V.PIECES[i]];
counts[5+i] = this.captured["b"][V.PIECES[i]];
return pieces["b"].join("") +
"/pppppppppp/10/10/10/10/10/10/PPPPPPPPPP/" +
pieces["w"].join("").toUpperCase() +
- " w 1111 -";
+ " w 1111 - 0000000000";
}
}