Skip to content

πŸ›  A library for displaying and working with twisty puzzles. Also currently home to the code for Twizzle.

License

GPL-3.0, MPL-2.0 licenses found

Licenses found

GPL-3.0
LICENSE-GPL.md
MPL-2.0
LICENSE-MPL.md
Notifications You must be signed in to change notification settings

cubing/cubing.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Aug 5, 2021
ccb6673 Β· Aug 5, 2021
Aug 1, 2021
Apr 27, 2021
Jul 31, 2021
Jul 22, 2021
Aug 5, 2021
Jul 6, 2021
Jul 4, 2021
Jul 4, 2021
Sep 19, 2018
Jul 27, 2021
Jul 25, 2021
Jul 25, 2021
Aug 5, 2021
Aug 5, 2021
Jul 22, 2021
Jul 4, 2021
Jul 4, 2021
Aug 4, 2021

Repository files navigation

cubing.js

make test
make build

cubing.js is a collection of Javascript libraries, still under development.

Twizzle

Twizzle is based on cubing.js, and is currently being developed at src/sites/alpha.twizzle.net.

Documentation

If you want to display algs or solves, the following code is a good way to get started:

<script
  src="https://cdn.cubing.net/esm/cubing/twisty"
  type="module"
  defer
></script>
<twisty-player alg="R U R' U R U2' R'"></twisty-player>

You can find more documentation at js.cubing.net/cubing/.
The source for the documentation site is currently inside the docs folder of this repository.

Development

Development relies on node and npm. Once you have installed those, you can run:

git clone https://github.com/cubing/cubing.js && cd cubing.js
npm install
make dev

This should open the sites root file at http://localhost:3333/ automatically. Any source code changes will refresh the browser. We don't yet have a development guide, so you'll have to search the code to find where features are implemented.

The core library code for cubing.js is in src/cubing To test changes, use:

make test

License

This project is licensed under the GPL license (version 3 or later). This means that this library is free to use, although you must publish any code that uses it (e.g. also put it on GitHub). See the full license for exact details.

We've selected this license in order to encourage the cubing community to work on software in a way so that everyone can contribute and extend each other's work.