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.0.0 to 1.1.0

lib/getAsciiRepresentation.d.ts

4

lib/index.d.ts
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; } });

2

lib/isValidMove.js

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

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