Comparing version 2.3.3 to 2.3.4
@@ -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; |
{ | ||
"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", |
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
215127
6150