PresidentSwaptype
Cards handed over at the start of a round: the best cards up, whatever the receiver chooses back down.
Import it
import type { PresidentSwap } from "@johnmorrisdotca/toranpu/president";
Definition
type PresidentSwap = {
from: number;
to: number;
cards: CardId[];
};
Members
| Name | Type | Description |
|---|---|---|
from | number | |
to | number | |
cards | string[] |
Examples
import type { PresidentSwap } from "@johnmorrisdotca/toranpu/president";
const value: PresidentSwap = { from: 0, to: 3, cards: ["3D", "4C"] };
console.log(value.cards);[ '3D', '4C' ]What it prints (run when this page was built)