Options
All
  • Public
  • Public/Protected
  • All
Menu

Module puzzle/SmartLink

SmartLink module for the Mystery Master Logic Puzzle Solver.

copyright

mysterymaster.com. All rights reserved.

author

Michael Benson

version

2021-08-31

Index

Functions

getHasRatio

  • Returns positive verb if number for noun1 times n1 equals number for noun2 times n2, otherwise negative verb.

    Parameters

    • n1: number

      Number on left hand side.

    • n2: number

      Number on right hand side.

    Returns LinkFunction

    LinkFunction hasRatio.

getIsLessBy

  • Returns positive verb if the number for noun1 is exactly n less than the number for noun2, otherwise negative verb.

    Parameters

    • n: number

      Number.

    Returns LinkFunction

    LinkFunction isLessBy.

getIsLessThan

  • Returns positive verb if the number for noun1 is less than the number for noun2 minus n, otherwise negative verb. For n = 1, this means "before, but not just before."

    Parameters

    • n: number = 0

      Number.

    Returns LinkFunction

    LinkFunction isLessThan.

getIsMoreBy

  • Returns positive verb if the number for noun1 is exactly n more than the number for noun2, otherwise negative verb.

    Parameters

    • n: number

      Number.

    Returns LinkFunction

    LinkFunction isMoreBy.

getIsMoreThan

  • Returns positive verb if the number for noun1 is more than the number for noun2 plus n, otherwise negative verb. For n = 1, this means "after, but not just after."

    Parameters

    • n: number = 0

      Number.

    Returns LinkFunction

    LinkFunction isMoreThan.

getIsNextTo

  • Returns positive verb if number for noun1 is exactly 1 less or 1 more than number for noun2, otherwise negative verb.

    Returns LinkFunction

    LinkFunction isNextTo.

getIsOffsetBy

  • Returns positive verb if number for noun1 is exactly n less or n more than number for noun2, otherwise negative verb. Equivalent to isNextTo when n is one.

    Parameters

    • n: number

      Number.

    Returns LinkFunction

    LinkFunction isOffsetBy.

getIsOutsideOf

  • Returns positive verb if number for noun1 is either n less or n more than number for noun2, otherwise negative verb.

    Parameters

    • n: number

      Number.

    Returns LinkFunction

    LinkFunction isOutsideOf.

getIsWith

  • Returns positive verb if both nouns are equal (i.e., are the same noun), otherwise negative verb.

    Returns LinkFunction

    LinkFunction isWith.

Generated using TypeDoc