Free Touch Pricker
    Preparing search index...

    Function createTranspositions

    • Creates transpositions for touch searches.

      Searches for touches work in steps identified by a Calling. A step must include the complete cycle of sixes for the method in order to avoid having to handle different types of six when searching for touches. We need to know the transposition row associated with each calling so that we can enumerate all possible touches.

      This function returns a transposition row for each provided calling string in a Map from the calling string to the transposition row. By default transposition rows represent forward progress through the touch; the computeInverse parameter can be used to retrieve rows representing reverse progress.

      > const course = new Course(rounds(Stage.Triples), new Stedman());
      > createTranspositions(course, [' ', '--']);
      Map(2) {
      ' ' => [2, 4, 6, 7, 1, 5, 3],
      '--' => [2, 4, 5, 3, 1, 6, 7]
      }

      Note that the provided course will be mutated.

      Parameters

      Returns Map<string, Row>