Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rook2pawn committed Nov 9, 2011
1 parent 77914e1 commit e3b83cd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions index.js
Expand Up @@ -35,11 +35,12 @@ function fenPGN(obj) {
return h.isKingMated(board,color);
};
this.isKingCheckedOnMove = function(move) {
var myboard = h.updateBoardMSAN(move);
var myboard = h.updateBoardMSAN(board, move);
return h.isKingChecked(myboard);
};
this.getStartPieceInfo = function(msanMove) {
return h.getStartPieceInfo(board,msanMove);
this.getStartPieceInfo = function(params) {
var theboard = params.board || board;
return h.getStartPieceInfo(theboard,params.msanMove);
};
this.getProps = function() {
return props;
Expand All @@ -60,8 +61,9 @@ function fenPGN(obj) {
return obj.history[obj.history.length - 1];
}
};
this.getAvailableSquares = function(row,col) {
return h.getAvailableSquares(board,row,col);
this.getAvailableSquares = function(params) {
var theboard = params.board || board;
return h.getAvailableSquares(theboard,params.row,params.col);
};
this.piecesUnicode = function() {
return h.piecesUnicode;
Expand Down

0 comments on commit e3b83cd

Please sign in to comment.