ldez / cubejs

cube.js -- JavaScript library for modeling and solving the 3x3x3 Rubik's Cube
http://ldez.github.io/cubejs/
MIT License
315 stars 47 forks source link

What is Cube obj made of? #114

Open Nurech opened 2 years ago

Nurech commented 2 years ago

I would like to use your solver to solve an external cube state and return an solve.

  1. Please explain what is Cube obj made of so I know how to map my external cube to this obj.
{ "center": [],
    "cp": [],
    "co": [],
    "ep": [],
    "eo": [] }

cp = corner pieces? ep = edge pieces? etc.

  1. Does during solve() Cube at anytime flip axis?

  2. Is is possible to validate if passed string to make new Cube is a valid string?

Thank you!