Function getNextPlayableRanks
getNextPlayableRanks( suitIndex: 0 | 1 | 2 | 3 | 4 | 5, playStack: readonly number[], playStackDirection: StackDirection, playStackStarts: Readonly<Tuple<null | 7 | 3 | 1 | 2 | 4 | 5, NumSuits>>, variant: Variant, deck: readonly CardState[],): readonly number[] Parameters
- suitIndex: 0 | 1 | 2 | 3 | 4 | 5
- playStack: readonly number[]
- playStackDirection: StackDirection
- playStackStarts: Readonly<Tuple<null | 7 | 3 | 1 | 2 | 4 | 5, NumSuits>>
- variant: Variant
- deck: readonly CardState[]
Returns readonly number[]
Returns an array since it is possible in some variants to have two or more possible cards that are legal next plays.