Fix moveList + progress on game navigation system
[vchess.git] / public / javascripts / base_rules.js
index 4b0b470..7db4cfd 100644 (file)
@@ -1053,6 +1053,8 @@ class ChessRules
                        move.flags = JSON.stringify(this.aggregateFlags()); //save flags (for undo)
                if (V.HasEnpassant)
                        this.epSquares.push( this.getEpSquare(move) );
+               if (!move.color)
+                       move.color = this.turn; //for interface
                V.PlayOnBoard(this.board, move);
                this.turn = V.GetOppCol(this.turn);
                this.movesCount++;