3x3-cube
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

UI for app that solves 3x3x3 Rubik's Cube

user may click any square to change it's color with the ColorPicker component

each time a color is chosen, the squares are all validated by validateColors util to ensure the cube can be solved

all squares' positions and colors are accessible in the global inputs object

solve prop expects an async function that returns a promise resolving to the moves for solving the cube as a string

import the getFacelets function to get a string of the cube's facelets in propper order for integration with cubejs

example of backend integration endpoint

example of instantiating the modules

Readme

Keywords

none

Package Sidebar

Install

npm i 3x3-cube

Weekly Downloads

49

Version

2.1.3

License

MIT

Unpacked Size

57.8 kB

Total Files

22

Last publish

Collaborators

  • spope5