presidentSwapCountfunction
How many cards the President and the Beggar swap: two, or one when only three are at the table.
Import it
import { presidentSwapCount } from "@johnmorrisdotca/toranpu/president";
Definition
function presidentSwapCount(seats: number): number
Parameters
| Name | Type | Description |
|---|---|---|
seats | number | The seat count or seat state supplied by this API. |
Returns
number
How many cards the President and the Beggar swap: two, or one when only three are at the table.
Examples
import { presidentSwapCount } from "@johnmorrisdotca/toranpu/president";
console.log(presidentSwapCount(4));2What it prints (run when this page was built)