Reference · Cube engine and views
countsAsMovefunction
Whether a move counts towards a solve's moves: a turn of the whole cube in the hand does not.
Import it
import { countsAsMove } from "@johnmorrisdotca/kyuubu";
Definition
function countsAsMove(move: CubeMove): boolean
Parameters
| Name | Type | Description |
|---|---|---|
move | CubeMove | The turn to apply, name or invert. |
Returns
boolean
Whether a move counts towards a solve's moves: a turn of the whole cube in the hand does not.
Examples
import { countsAsMove, parseMove } from "@johnmorrisdotca/kyuubu";
const move = parseMove("R", 3)!;
console.log(countsAsMove(move));trueWhat it prints (run when this page was built)