Skip to content

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.

T

readonly T[]

number = 0

TurnOrder<T>