Giter Site home page Giter Site logo

Comments (6)

cs0x7f avatar cs0x7f commented on June 15, 2024

It's the same definition as Kociemba's java package.

 * @param facelets
 *      is the cube definition string format.<br>
 * The names of the facelet positions of the cube:
 * <pre>
 *             |************|
 *             |*U1**U2**U3*|
 *             |************|
 *             |*U4**U5**U6*|
 *             |************|
 *             |*U7**U8**U9*|
 *             |************|
 * ************|************|************|************|
 * *L1**L2**L3*|*F1**F2**F3*|*R1**R2**R3*|*B1**B2**B3*|
 * ************|************|************|************|
 * *L4**L5**L6*|*F4**F5**F6*|*R4**R5**R6*|*B4**B5**B6*|
 * ************|************|************|************|
 * *L7**L8**L9*|*F7**F8**F9*|*R7**R8**R9*|*B7**B8**B9*|
 * ************|************|************|************|
 *             |************|
 *             |*D1**D2**D3*|
 *             |************|
 *             |*D4**D5**D6*|
 *             |************|
 *             |*D7**D8**D9*|
 *             |************|
 * </pre>
 * A cube definition string "UBL..." means for example: In position U1 we have the U-color, in position U2 we have the
 * B-color, in position U3 we have the L color etc. For example, the "super flip" state is represented as <br>
 * <pre>UBULURUFURURFRBRDRFUFLFRFDFDFDLDRDBDLULBLFLDLBUBRBLBDB</pre>
 * and the state generated by "F U' F2 D' B U R' F' L D' R' U' L U B' D2 R' F U2 D2" can be represented as <br>
 * <pre>FBLLURRFBUUFBRFDDFUULLFRDDLRFBLDRFBLUUBFLBDDBUURRBLDDR</pre>
 * You can also use {@link cs.min2phase.Tools#fromScramble(java.lang.String s)} to convert the scramble string to the
 * cube definition string.

from min2phase.

jaydangar avatar jaydangar commented on June 15, 2024

I did understood the concept of taking colors, another thing i want to know is that "does the position of rubik's cube side to get each 9 colors matter?", i need to take colors from sides in particular order or i can randomly go from any side to any side.

And yes if the order matters then what kind of order should i need to follow to get 9 colors?

like Front --> UP --> Back --> Down --> Right --> Left,

please suggest me this order as well.

from min2phase.

cs0x7f avatar cs0x7f commented on June 15, 2024

It should be U -> R -> F -> D -> L -> B
More specifically, U1 U2 ... U9 R1 R2 ... R9 F1 ...

from min2phase.

jaydangar avatar jaydangar commented on June 15, 2024

Thank you

from min2phase.

jaydangar avatar jaydangar commented on June 15, 2024

Is it necessary for cube to be in a certain position, so that certain colors are on top like we are going from U --> Right --> Front --> Down --> Left --> Back, so cube's middle element should be Orange(Top Middle Color) --> Blue (Right Middle Color) --> White (Front Middle Color) --> Red (Down Middle Color) --> Green (Left Middle Color) --> Yellow (Right Middle Color), is it necessary??

from min2phase.

cs0x7f avatar cs0x7f commented on June 15, 2024

A certain position is not necessary, but all center pieces should be correctly filled. Min2phase does not know the colour scheme of the cube. So the colour scheme is determined by 6 center pieces. See https://github.com/cs0x7f/min2phase/blob/dev-min/Search.java#L263
Therefore, if you exchange 'U' and 'R' in the string, the cube is still solvable by min2phase. And if you do a cube rotation, the cube is still solvable since the center pieces are rotated as well.

from min2phase.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.