Reference · Surface maze rules and geometry
isSolidDiefunction
Whether a solid is among the dice (the rest are shapes).
Import it
import { isSolidDie } from "@johnmorrisdotca/meikyuu/3d";
Also exported from: @johnmorrisdotca/meikyuu/3d/levels/all
Definition
function isSolidDie(kind: string): kind is (typeof SOLID_DICE)[number]
Parameters
| Name | Type | Description |
|---|---|---|
kind | string | The native puzzle family or surface shape specified by this signature. |
Returns
boolean
Whether a solid is among the dice (the rest are shapes).
Examples
import { isSolidDie } from "@johnmorrisdotca/meikyuu/3d";
console.log(isSolidDie("cube"));trueWhat it prints (run when this page was built)