Interface PhraseProvider

Hierarchy

  • PhraseProvider

Implemented by

Index

Methods

getConstantPhrase

  • getConstantPhrase(seed: number): string
  • Returns a constant word or phrase from the list. This value is moduled with the array size so any value can be safely used for the seed.

    Parameters

    • seed: number

      Value whose modulo is used to index the phrase/word list.

    Returns string

    Deterministic phrase based on the seed.

getRandomPhrase

  • getRandomPhrase(): string
Brought to you with ❤ by the Alexa Games team at Amazon. © 2019, Amazon.com, Inc. or its affiliates. All Rights Reserved.