Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quoridor

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quoridor - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

4

lib/aStar.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc