Skip to content
Snippets Groups Projects
Commit 67310040 authored by deuce's avatar deuce
Browse files

No need to sue {value:XXX} in prototype member assignments.

parent 5add46a0
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ Board.prototype.handleMove=function(move)
}
this.moves.push(moves[move]);
}
Board.prototype.movenum={value: 0};
Board.prototype.movenum=0;
Board.prototype.pieces=null;
Board.prototype._domove=function(from, to)
{
......@@ -98,6 +98,7 @@ Board.prototype._domove=function(from, to)
this.pieces[piece.y-1][piece.x-1]=null;
piece.x=to.x;
piece.y=to.y;
this.movenum++;
return true;
}
Board.prototype.getPiece=function(pos)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment