Comparing version 1.0.0 to 1.1.0
export { isValidMove } from './isValidMove'; | ||
export { getAsciiRepresentation } from './getAsciiRepresentation'; | ||
export { makeMove } from './makeMove'; | ||
export { isGameOver } from './isGameOver'; | ||
export { getWinner } from './getWinner'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isValidMove = void 0; | ||
exports.getWinner = exports.isGameOver = exports.makeMove = exports.getAsciiRepresentation = exports.isValidMove = void 0; | ||
var isValidMove_1 = require("./isValidMove"); | ||
Object.defineProperty(exports, "isValidMove", { enumerable: true, get: function () { return isValidMove_1.isValidMove; } }); | ||
var getAsciiRepresentation_1 = require("./getAsciiRepresentation"); | ||
Object.defineProperty(exports, "getAsciiRepresentation", { enumerable: true, get: function () { return getAsciiRepresentation_1.getAsciiRepresentation; } }); | ||
var makeMove_1 = require("./makeMove"); | ||
Object.defineProperty(exports, "makeMove", { enumerable: true, get: function () { return makeMove_1.makeMove; } }); | ||
var isGameOver_1 = require("./isGameOver"); | ||
Object.defineProperty(exports, "isGameOver", { enumerable: true, get: function () { return isGameOver_1.isGameOver; } }); | ||
var getWinner_1 = require("./getWinner"); | ||
Object.defineProperty(exports, "getWinner", { enumerable: true, get: function () { return getWinner_1.getWinner; } }); |
@@ -219,4 +219,2 @@ "use strict"; | ||
// If wall move | ||
game.wallMatrix[move.x][move.y][move.w] = true; | ||
game.playerWallCounts[game.turn]--; | ||
return __assign(__assign({}, game), { wallMatrix: __assign(__assign({}, game.wallMatrix), (_a = {}, _a[move.x] = __assign(__assign({}, game.wallMatrix[move.x]), (_b = {}, _b[move.y] = __assign(__assign({}, game.wallMatrix[move.x][move.y]), (_c = {}, _c[move.w] = true, _c)), _b)), _a)), playerWallCounts: __assign(__assign({}, game.playerWallCounts), (_d = {}, _d[game.turn] = game.playerWallCounts[game.turn] - 1, _d)), history: __assign(__assign({}, game.history), (_e = {}, _e[game.turn] = __spreadArray(__spreadArray([], game.history[game.turn]), [move]), _e)), turn: game.turn === 1 ? 2 : 1 }); | ||
@@ -223,0 +221,0 @@ } |
{ | ||
"name": "quoridor", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "A JavaScipt Quoridor library for move validation etc.", | ||
@@ -35,3 +35,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@types/jest": "^26.0.15", | ||
"@types/jest": "^26.0.22", | ||
"jest": "^26.6.1", | ||
@@ -38,0 +38,0 @@ "prettier": "^2.1.2", |
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
50571
21
1471