Reference · Rules, tiles and records
typingWayfunction
Which way typed letters run ON THE SCREEN. Typing lays a word across or down the grid, so that it reads as a word; with the table turned, that is another way on the screen, and the cursor's arrow points it.
Import it
import { typingWay } from "@johnmorrisdotca/kumimoji";
Definition
function typingWay(across: boolean, turn: Turn): { arrow: string; name: string; }
Parameters
| Name | Type | Description |
|---|---|---|
across | boolean | Whether to lay or type horizontally rather than vertically. |
turn | Turn | The number of quarter turns of the view. |
Returns
{ arrow: string; name: string; }
Which way typed letters run ON THE SCREEN. Typing lays a word across or down the grid, so that it reads as a word; with the table turned, that is another way on the screen, and the cursor's arrow points it.
Examples
import { typingWay } from "@johnmorrisdotca/kumimoji";
console.log(typingWay(true,1));{ arrow: '↓', name: 'down' }What it prints (run when this page was built)