Reference · Cube engine and views
algorithmNamefunction
The name of one of the method's algorithms, as a person would say it: "Three corners round", 「コーナーの三点交換」.
Import it
import { algorithmName } from "@johnmorrisdotca/kyuubu";
Definition
function algorithmName(algorithm: SolveAlgorithm, language?: KyuubuLanguage): string
Parameters
| Name | Type | Description |
|---|---|---|
algorithm | "yellowCross" | "cornerIn" | "edgeRight" | "edgeLeft" | "sune" | "cornerCycle" | "edgeCycle" | The named solving algorithm. |
language (optional) | KyuubuLanguage | English or Japanese for the displayed words. |
Returns
string
The name of one of the method's algorithms, as a person would say it: "Three corners round", 「コーナーの三点交換」.
Examples
import { algorithmName } from "@johnmorrisdotca/kyuubu";
console.log(algorithmName("sune", "en"));SuneWhat it prints (run when this page was built)