gflohr / cube-last-layer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cube Last Layer

This all-in-one HTML file can be used to look up all algorithms needed to solve a 3x3x3 Rubik's Cube with the CFOP method aka the Fridrich Method.

Installation

There is no real installation required. Either clone the repository or download a release, extract it to a location of your choice, and open the file index.html in your browser.

There is also an online version hosted on GitHub Pages. It always contains the latest version from the main development branch.

Usage

Method

The CFOP method can be be down in two ways.

Full OLL/PLL requires just two steps. In step one, all pieces of the last layer are oriented correctly, so that the upper face has just one color (Orient Last Layer or OLL). In step two, all pieces of the last layer are brought to their correct location (Permute Last Layer or PLL).

Alternatively, you can split OLL and PLL (or just one of them) into two steps. That requires fewer algorithms to memorize but is, of course, slower.

The four steps required for this 4-Look OLL/PLL are:

  1. OLL
    1. EOLL (Edge Orientation of Last Layer)
    2. OCLL (Orient Corners of Lasat Layer)
  2. PLL
    1. CPOLL (Corner Permutation of Last Layer)
    2. EPLL (Edge Permutation Last Layer)

You can switch between both methods, and your decision will be saved.

Note that you can also do full PLL but 2-look OLL or also vice versa full OLL and 2-look PLL.

Selecting an Algorithm

For almost all cases, you have multiple algorithms at your choice. Selecting one will let you replay all turns of that algorithm in a cube animation in the top-left corner.

Your choice of algorithm will be remembered for your next session.

If you want to add an algorithm, check the sources in index.html, and search for another algorithm from the same case. Adding your own version should be self-explanatory. If you want to share your algorithm, consider creating a pull request or file an issue in order to get in touch with the author.

Language

The "application" (well, umh, not really an application but ...) can dynamically switch between the default language English and the alternative language German by clicking on one of the flags at the page top. Your choice is being remembered.

If you want to add your own language, search the source code for the strings "_en" and "-en", duplicate the corresponding line, and modify it for your language. If you want to share your translation with the community, create a pull request or open an issue in order to get in touch with the author.

Why is this Better than Algorithm Collection XYZ?

These are the main advantages:

  1. All algorithms are animated.
  2. Your favourite algorithm is remembered.
  3. If your favourite algorithm requires a turn of the U layer, the animation automatically reflects the correct perspective. You will never see awkward y turns at beginning and/or end of an algorithm.
  4. The sidebar navigation allows you to quickly access the case that you are interested in.
  5. You will also find algorithm versions for people that prefer R turns over L turns.

Bugs and Caveats

The code is terrible spaghetti code. The main reason is the author being too lazy to give the project a proper structure after it had grown and evolved.

Some of its odd style is owed to the requirement that the HTML file should work with plain file:// URLs.

Licence

The permissive WTFPL 2.0. The file roofpig_and_three.min.js and the JQuery source file come with their own licence that you can find in their source code.

About

License:Other


Languages

Language:HTML 100.0%