Comparing version 1.4.0 to 1.4.1
@@ -284,6 +284,5 @@ "use strict"; | ||
// TODO: Surely this must be wrong, or? | ||
if (letterToNumber(exports.getHorizontalCoordinate(currentPosition)) - | ||
letterToNumber(exports.getHorizontalCoordinate(move)) === | ||
-2 && | ||
exports.getHorizontalCoordinate(currentPosition) === exports.getHorizontalCoordinate(move)) { | ||
if (exports.getVerticalCoordinate(move) - exports.getVerticalCoordinate(currentPosition) === | ||
2 && | ||
exports.getHorizontalCoordinate(move) === exports.getHorizontalCoordinate(currentPosition)) { | ||
return true; | ||
@@ -502,4 +501,5 @@ } | ||
y: incrementVerticalPiecePosition(y), | ||
}))) | ||
}))) { | ||
return false; | ||
} | ||
return true; | ||
@@ -506,0 +506,0 @@ } |
{ | ||
"name": "quoridor", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A JavaScipt Quoridor library for move validation etc.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93810