Function watch

  • Watches the board for a change, blocking until any cards turn face up or face down, are removed from the board, or change from one string to a different string.

    Returns

    the state of the board, in the format described in the ps4 handout

    Parameters

    • board: Board

      a Memory Scramble board

    • playerId: string

      ID of player watching the board; must be a nonempty string of alphanumeric or underscore characters

    Returns Promise<string>

Generated using TypeDoc