Function waitForMove

Waits for a move to occur and executes the provided function.

  • Parameters

    • fn: (() => void)

      The function to be executed when a move occurs.

        • (): void
        • Returns void

    Returns (() => void)

      • (): void
      • Returns void