+
+ console.log("after undo of " + this.getNotation(moves11[i]) + " " + this.turn + " " + this.subTurn);
+
+ }
+console.log("turn interm " + this.turn + " " + this.subTurn);
+
+ for (let i=0; i<doubleMoves.length; i++)
+ {
+ if (doubleMoves[i].moves.length == 2)
+ {
+ if (this.moves.length == 1
+ && this.getNotation(doubleMoves[i].moves[0])=="a5"
+ && this.getNotation(doubleMoves[i].moves[1])=="h6")
+ {
+ return doubleMoves[i].moves;
+ }
+ if (this.moves.length == 5
+ && this.getNotation(doubleMoves[i].moves[0])=="c6"
+ && this.getNotation(doubleMoves[i].moves[1])=="Kc7")
+ {
+ return doubleMoves[i].moves;
+ }
+ if (this.moves.length == 9
+ && this.getNotation(doubleMoves[i].moves[0])=="d6"
+ && this.getNotation(doubleMoves[i].moves[1])=="dxe5")
+ {
+ return doubleMoves[i].moves;
+ }
+ if (this.moves.length == 13
+ && this.getNotation(doubleMoves[i].moves[0])=="fxe6"
+ && this.getNotation(doubleMoves[i].moves[1])=="Rxf1")
+ {
+ return doubleMoves[i].moves;
+ }
+ if (this.moves.length == 17
+ && this.getNotation(doubleMoves[i].moves[0])=="Nb6"
+ && this.getNotation(doubleMoves[i].moves[1])=="Bg6")
+ {
+ return doubleMoves[i].moves;
+ }
+ if (this.moves.length == 21
+ && this.getNotation(doubleMoves[i].moves[0])=="Bxe4"
+ && this.getNotation(doubleMoves[i].moves[1])=="Nxd3") //Bxd3
+ {
+ return doubleMoves[i].moves;
+ }
+ if (this.moves.length == 25
+ && this.getNotation(doubleMoves[i].moves[0])=="Na4"
+ && this.getNotation(doubleMoves[i].moves[1])=="xb6") //Nxb6
+ {
+ debugger;
+ return doubleMoves[i].moves;
+ }
+ }