Comparing version 1.6.6 to 1.6.7
@@ -1245,2 +1245,7 @@ "use strict"; | ||
var thatPlayersCurrentPosition = game.playerPositions[thatTurn]; | ||
var allWallMoves = getAllWallMoves().map(function (moveObject) { return exports.moveObjectToMove(moveObject); }); | ||
// The first placed wall can never be invalid, so no need to check for validity | ||
if (game.playerWallCounts[1] === 10 && game.playerWallCounts[2] === 10) { | ||
return allWallMoves; | ||
} | ||
var thisPlayersShortestPath = exports.shortestPath(game, thisTurn); | ||
@@ -1251,5 +1256,3 @@ var thatPlayersShortestPath = exports.shortestPath(game, thatTurn); | ||
} | ||
return getAllWallMoves() | ||
.map(function (moveObject) { return exports.moveObjectToMove(moveObject); }) | ||
.filter(function (wallMove) { | ||
return allWallMoves.filter(function (wallMove) { | ||
if (overlapsWall(game, wallMove)) | ||
@@ -1256,0 +1259,0 @@ return false; |
{ | ||
"name": "quoridor", | ||
"version": "1.6.6", | ||
"version": "1.6.7", | ||
"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
121804
2613