Reference · Cube engine and views
solvedCubefunction
A solved cube of this size.
Import it
import { solvedCube } from "@johnmorrisdotca/kyuubu";
Definition
function solvedCube(n: number): string
Parameters
| Name | Type | Description |
|---|---|---|
n | number | The cube’s side length. |
Returns
string
A solved cube of this size.
Examples
import { solvedCube } from "@johnmorrisdotca/kyuubu";
console.log(solvedCube(2));UUUURRRRFFFFDDDDLLLLBBBBWhat it prints (run when this page was built)