@Cards-TS
    Preparing search index...
    • Creates a machine that calls each player in order

      Type Parameters

      Parameters

      • config: {
            afterEach?: (controllers: T) => void;
            controller: (controllers: T) => TurnController;
            handler: T["players"] extends GenericHandlerController<any, Handles>
                ? Exclude<keyof Handles, "message" | "waitingFor">
                : never;
            skipIf?: (controllers: T) => boolean;
            startingPosition: (controllers: T) => number;
        }
        • OptionalafterEach?: (controllers: T) => void

          Logic to be run after each handler is called

        • controller: (controllers: T) => TurnController

          The controller to store the calling position state in

        • handler: T["players"] extends GenericHandlerController<any, Handles>
              ? Exclude<keyof Handles, "message" | "waitingFor">
              : never

          The key of the game handler to call

        • OptionalskipIf?: (controllers: T) => boolean

          Determine if a handler should be called or not

        • startingPosition: (controllers: T) => number

          A provider of the position to begin calling first

      Returns Named<NestedMachine<T>>

      The machine