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.3.3 to 2.3.4

3

lib/getValidMoveArray.js

@@ -13,4 +13,7 @@ "use strict";

exports.getValidMoveArray = void 0;
var isGameOver_1 = require("./isGameOver");
var utils_1 = require("./utils");
var getValidMoveArray = function (game) {
if ((0, isGameOver_1.isGameOver)(game))
return [];
var validPawnMoveArray = (0, utils_1.getValidPawnMoveArray)(game);

@@ -17,0 +20,0 @@ var validWallMoveArray = (0, utils_1.getValidWallMoveArray)(game);

@@ -6,5 +6,8 @@ "use strict";

var getTurn_1 = require("./getTurn");
var isGameOver_1 = require("./isGameOver");
var makeUnvalidatedMove_1 = require("./makeUnvalidatedMove");
var utils_1 = require("./utils");
var isMoveValid = function (game, move) {
if ((0, isGameOver_1.isGameOver)(game))
return false;
// Handle wall moves

@@ -11,0 +14,0 @@ var currentPosition = game.playerPositions[(0, getTurn_1.getTurn)(game)].position;

2

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