Reference · Cube engine and views
faceOfSlotfunction
The face letter a solved cube shows at this slot.
Import it
import { faceOfSlot } from "@johnmorrisdotca/kyuubu";
Definition
function faceOfSlot(at: number, n: number): CubeFace
Parameters
| Name | Type | Description |
|---|---|---|
at | number | The sticker’s index in the state string. |
n | number | The cube’s side length. |
Returns
"U" | "R" | "F" | "D" | "L" | "B"
The face letter a solved cube shows at this slot.
Examples
import { faceOfSlot } from "@johnmorrisdotca/kyuubu";
console.log(faceOfSlot(0, 3));UWhat it prints (run when this page was built)