Comparing version 2.3.4 to 2.3.5
@@ -360,12 +360,2 @@ "use strict"; | ||
var isValidNormalMove = function (game, currentPosition, move) { | ||
// TODO: I might no longer need this now that this is properly typed | ||
// If move is outside board, but it seems like the getNorthWestMove etc. are a | ||
// bit incorrectly typed. | ||
if (letterToNumber((0, exports.getHorizontalCoordinate)(move)) < 1 || | ||
letterToNumber((0, exports.getHorizontalCoordinate)(move)) > 9) { | ||
return false; | ||
} | ||
if ((0, exports.getVerticalCoordinate)(move) < 1 || (0, exports.getVerticalCoordinate)(move) > 9) { | ||
return false; | ||
} | ||
// If the move lands on top of the opponent | ||
@@ -372,0 +362,0 @@ if (game.board[move] === (0, exports.getOppositePlayer)((0, getTurn_1.getTurn)(game))) { |
{ | ||
"name": "quoridor", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"description": "A JavaScipt Quoridor library for move validation etc.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
214633
6140