Comparing version 2.1.2 to 2.1.3
@@ -18,5 +18,5 @@ "use strict"; | ||
return (newPosition && | ||
utils_1.isValidNormalMove(game, position, newPosition) && | ||
!discoveredPositions.has(newPosition) && | ||
!relaxedPositions.has(newPosition)); | ||
!relaxedPositions.has(newPosition) && | ||
utils_1.isValidAStarMove(game, position, newPosition)); | ||
}); | ||
@@ -23,0 +23,0 @@ }; |
@@ -19,2 +19,3 @@ import { Game, HorizontallyDecrementablePawnPosition, HorizontallyIncrementablePawnPosition, HorizontalPiecePosition, HorizontalWallPosition, Move, MoveObject, PawnMove, PawnPosition, Player, VerticallyDecrementablePawnPosition, VerticallyIncrementablePawnPosition, VerticalPiecePosition, VerticalWallPosition, WallMove, WallOrientation, WallPosition } from './types'; | ||
export declare const getOppositePlayer: (player: Player) => 1 | 2; | ||
export declare const isValidAStarMove: (game: Game, currentPosition: PawnPosition, move: PawnMove) => boolean; | ||
export declare const isValidNormalMove: (game: Game, currentPosition: PawnPosition, move: PawnMove) => boolean; | ||
@@ -21,0 +22,0 @@ export declare const getShortestPathWithNoObstacles: (game: Game, player: Player) => PawnPosition[]; |
{ | ||
"name": "quoridor", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "A JavaScipt Quoridor library for move validation etc.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
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
200107
5133