Reference · Rules, tiles and records
liftAllfunction
Every tile on the table back to the hand.
Import it
import { liftAll } from "@johnmorrisdotca/kumimoji";
Definition
function liftAll(play: TilePlay): TilePlay
Parameters
| Name | Type | Description |
|---|---|---|
play | TilePlay | The current immutable solo-game progress. |
Returns
TilePlay
Every tile on the table back to the hand.
Examples
import { deal, liftAll, placeFromHand } from "@johnmorrisdotca/kumimoji";
const laid = placeFromHand(deal("catdog",3),0,"0,0");
console.log(liftAll(laid).hand);[ 'a', 't', 'c' ]What it prints (run when this page was built)