Reference · Rules, tiles and records
nextTurnfunction
The next turn a press gives: a quarter clockwise, and four presses back to the start.
Import it
import { nextTurn } from "@johnmorrisdotca/kumimoji";
Definition
function nextTurn(turn: Turn): Turn
Parameters
| Name | Type | Description |
|---|---|---|
turn | Turn | The number of quarter turns of the view. |
Returns
Turn
The next turn a press gives: a quarter clockwise, and four presses back to the start.
Examples
import { nextTurn } from "@johnmorrisdotca/kumimoji";
console.log(nextTurn(3));0What it prints (run when this page was built)