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.7.4 to 1.7.5

10

lib/utils.js

@@ -1266,2 +1266,9 @@ "use strict";

};
var doesWallMoveHaveSameDirectionAsAllPreviousWallMoves = function (game, wallMove) {
var pastWallMoves = game.pastMoves.filter(exports.isWallPosition);
var orientation = exports.getWallOrientation(wallMove);
return orientation === 'h'
? pastWallMoves.every(isHorizontalWallMove)
: pastWallMoves.every(isVerticalWallMove);
};
var isHorizontalWallPosition = function (horizontalPosition) {

@@ -1519,2 +1526,5 @@ switch (horizontalPosition) {

}
if (doesWallMoveHaveSameDirectionAsAllPreviousWallMoves(game, wallMove)) {
return true;
}
if (!doesWallHaveAtLeastTwoNeighborWalls(game, wallMove)) {

@@ -1521,0 +1531,0 @@ return true;

2

package.json
{
"name": "quoridor",
"version": "1.7.4",
"version": "1.7.5",
"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