Options
All
  • Public
  • Public/Protected
  • All
Menu

Solver interface for the Mystery Master Logic Puzzle Solver. The Solver class must implement this interface for the Puzzle.

copyright

mysterymaster.com. All rights reserved.

author

Michael Benson

version

2021-08-01

Hierarchy

  • ISolver

Implemented by

Index

Properties

maxMarks

maxMarks: number

numMarks

numMarks: number

Methods

addMarkByRule

  • addMarkByRule(mark: Mark, rule: Rule, refSub: string, noun1: Noun, verb: Verb, noun2: Noun, reason: string): number
  • Submits potential mark triggered by given rule invoked on given mark.

    Parameters

    • mark: Mark

      Mark referenced.

    • rule: Rule

      Rule referenced.

    • refSub: string

      Reference character.

    • noun1: Noun

      Noun 1.

    • verb: Verb

      Verb.

    • noun2: Noun

      Noun 2.

    • reason: string

      Reason for mark.

    Returns number

    status -1 = Error, 0 = Mark not entered, 1 = Mark entered.

canBeWith

  • canBeWith(noun1: Noun, noun2: Noun): boolean
  • Determines if noun 1 can be with noun 2.

    Parameters

    • noun1: Noun

      Noun 1.

    • noun2: Noun

      Noun 2.

    Returns boolean

    True if noun 1 can be with noun 2, otherwise false.

getCommonNoun

  • Returns first noun of noun type 3 that noun 1 and noun 2 can be with, otherwise null.

    Parameters

    Returns Noun

    Noun of noun type 3, or null.

getGridVerb

  • Determines verb of mark given by two nouns, or possible verb if mark is null.

    Parameters

    • noun1: Noun

      Noun 1.

    • noun2: Noun

      Noun 2.

    Returns Verb

    Verb of mark given by two nouns, or possible verb if mark is null.

getNouns

  • Returns list of nouns of noun type 2 that may be with noun 1.

    Parameters

    Returns Noun[]

    Array of nouns, which may be empty.

isMark

  • Determines if mark already exists.

    Parameters

    Returns boolean

    True if mark already exists, otherwise false.

maybeRelated

  • maybeRelated(noun1: Noun, link: Link, noun2: Noun): boolean
  • Determines if noun 1 is/maybe related to noun 2. Called by "New Self Improvement Committee".

    Parameters

    Returns boolean

    True if noun 1 is/maybe related to noun 2, otherwise false.

Generated using TypeDoc