Skip to content

akiradeveloper/rubikmaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rubik Master

Crates.io documentation CI Tokei

cube-demo3.mov

Do you like to solve Rubik's cube? I do.

As a cuber and programmer, I want to build a toolset to build applications like

  • Solver
  • Virtual Cube (As WebGL component)
  • Cube net printer
  • Tool to find more ergonomic OLL/PLL
  • (Semi-)Automatic scrambler

In this library, the state of the cube is expressed as 54x54 permutation matrix which consumes only 54 bytes in memory and the multiplication costs only O(54) since the matrix is sparse.

Features

This library includes the following modules

  • Core: The matrix representation of cube state and rotation.
  • Parser: Parser for rotation notes like RUR'U'.
  • Cube Component: Yew component to visualize a cube. Animation supported.

I am open to any suggestions.

How to run a demo

To run a demo/cubeviewer

  • cd demo/cubeviewer
  • trunk serve. If you don't have trunk installed please follow the guide.

Author

Akira Hayakawa (@akiradeveloper)

About

Library for Rubik's cube applications.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published