stackUpWantsfunction
What number a building pile wants next: one more than the cards on it.
Import it
import { stackUpWants } from "@johnmorrisdotca/toranpu/stack-up";
Definition
function stackUpWants(pile: readonly CardId[]): number
Parameters
| Name | Type | Description |
|---|---|---|
pile | readonly string[] | The cards on the building pile. |
Returns
number
What number a building pile wants next: one more than the cards on it.
Examples
import { stackUpWants } from "@johnmorrisdotca/toranpu/stack-up";
console.log(stackUpWants(["n01", "nw"]));3What it prints (run when this page was built)