Reference · Cube engine and views
moveNamefunction
What a move turns, in a few plain words, in English or Japanese; null for anything that is not a move in standard form.
Import it
import { moveName } from "@johnmorrisdotca/kyuubu";
Definition
function moveName(code: string, language?: KyuubuLanguage): string | null
Parameters
| Name | Type | Description |
|---|---|---|
code | string | The encoded moves or standard notation to read. |
language (optional) | KyuubuLanguage | English or Japanese for the displayed words. |
Returns
string | null
What a move turns, in a few plain words, in English or Japanese; null for anything that is not a move in standard form.
Examples
import { moveName } from "@johnmorrisdotca/kyuubu";
console.log(moveName("R2", "en"));Right face, twiceWhat it prints (run when this page was built)