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 1.6.6 to 1.6.7

9

lib/utils.js

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

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