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.5 to 1.8.0

lib/isMoveInteresting.d.ts

1

lib/index.d.ts

@@ -14,2 +14,3 @@ export { createNewGame } from './createNewGame';

export { makeUnvalidatedMove } from './makeUnvalidatedMove';
export { isMoveInteresting } from './isMoveInteresting';
/**

@@ -16,0 +17,0 @@ * Deprecated. This function has been renamed to getUnicodeRepresentation.

4

lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.undoLastMove = exports.isValidMove = exports.getAsciiRepresentation = exports.makeUnvalidatedMove = exports.isMove = exports.redo = exports.undo = exports.getTurn = exports.getValidMoveArray = exports.getWinner = exports.isGameOver = exports.makeMove = exports.getUnicodeRepresentation = exports.isMoveValid = exports.createGameFromMoves = exports.createNewGame = void 0;
exports.undoLastMove = exports.isValidMove = exports.getAsciiRepresentation = exports.isMoveInteresting = exports.makeUnvalidatedMove = exports.isMove = exports.redo = exports.undo = exports.getTurn = exports.getValidMoveArray = exports.getWinner = exports.isGameOver = exports.makeMove = exports.getUnicodeRepresentation = exports.isMoveValid = exports.createGameFromMoves = exports.createNewGame = void 0;
var createNewGame_1 = require("./createNewGame");

@@ -30,2 +30,4 @@ Object.defineProperty(exports, "createNewGame", { enumerable: true, get: function () { return createNewGame_1.createNewGame; } });

Object.defineProperty(exports, "makeUnvalidatedMove", { enumerable: true, get: function () { return makeUnvalidatedMove_1.makeUnvalidatedMove; } });
var isMoveInteresting_1 = require("./isMoveInteresting");
Object.defineProperty(exports, "isMoveInteresting", { enumerable: true, get: function () { return isMoveInteresting_1.isMoveInteresting; } });
var getUnicodeRepresentation_2 = require("./getUnicodeRepresentation");

@@ -32,0 +34,0 @@ var isMoveValid_2 = require("./isMoveValid");

@@ -14,2 +14,3 @@ import { Game, HorizontalPiecePosition, HorizontalWallPosition, Move, MoveObject, PawnMove, PawnPosition, Player, VerticalPiecePosition, VerticalWallPosition, WallMove, WallOrientation, WallPosition } from './types';

export declare const moveObjectToMove: (moveObject: MoveObject) => PawnPosition | WallPosition;
export declare const isPawnMove: (move: PawnMove | WallMove) => move is PawnPosition;
export declare const doesWallMoveOverlapExistingWall: (game: Game, wallMove: WallMove) => boolean;

@@ -24,2 +25,8 @@ export declare const isWallPosition: (move: Move) => move is WallPosition;

export declare const getValidPawnMoveArray: (game: Game) => PawnPosition[];
export declare const getNumberOfNeighborWalls: (game: Game, wallMove: WallMove) => number;
export declare const isWallAdjacentToAtLeastOnePawn: (game: Game, wall: WallPosition) => boolean;
export declare const overlapsPath: (path: {
x: string;
y: number;
}[], wallMove: WallPosition) => boolean;
export declare const getValidWallMoveArray: (game: Game) => WallPosition[];

@@ -26,0 +33,0 @@ export declare const butlast: <T>(array: T[]) => T[];

{
"name": "quoridor",
"version": "1.7.5",
"version": "1.8.0",
"description": "A JavaScipt Quoridor library for move validation etc.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is too big to display

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