JSPM

scramble-utils-common

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q31792F
  • License MIT

Common functions and constants for Rubik's cube scramble utilities

Package Exports

  • scramble-utils-common

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (scramble-utils-common) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

scramble-common-utils npm

npm install scramble-utils-common

API

Axes

Axes for a cubic puzzle

FaceAxisInfo

Mapping from face to axis around which it turns

FaceList

List of faces

Faces

Map of Faces.

Type: {}

Examples

import { Faces } from 'scramble-generator';
Faces.R; // 'R'
Faces.U; // 'U'

Modifiers

Mapping of name constant to corresponding scramble modifier

Type: {}

createMove

Creates a move for a scramble.

Parameters

  • move MoveConfig (optional, default {})

Returns Move An object representing a move for a scramble