Comparing version 1.7.5 to 1.8.0
@@ -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. |
"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
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
157363
53
3736