makeTurnOrder
makeTurnOrder<
T>(seats,first?):TurnOrder<T>
Defined in: src/modules/turn-based/turn-order.ts:28
A fresh order over a copy of seats, with first (an index, default 0)
active and both counters at 0. Throws when first is not a valid index of a
non-empty seats.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”readonly T[]
first?
Section titled “first?”number = 0
Returns
Section titled “Returns”TurnOrder<T>