Model of a 3x3x3 Rubik's cube written in CoffeeScript. Not to be confused with: http://en.wikipedia.org/wiki/Cuber
CoffeeScript Arduino JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
algorithms/jeremy
arduino
web
.gitignore
.npmignore
.slugignore
Cakefile
Faster Cube Algorithm- possibility.js
Motor Moves Conversion.txt
Procfile
README.md
best_solve.coffee
cuber.coffee
debug.coffee
grippers.coffee
optimal_test.coffee
optimize.coffee
package.json
persps.coffee
scratch.coffee
solver.coffee
statistics.coffee
test.coffee
translator.coffee
troubleshoot.coffee

README.md

Cuber.coffee

Model of a 3x3 Rubik's cube written in CoffeeScript

Usage

Require Cuber: Cuber = require './cuber.coffee'

Initialize a cube: cube = new Cube "Patrick\'s Rubik\'s Cube""

Display cube: cube.display()

Scramble cube: cube.scramble(100) (100 random turns)

Check if a cube is solver: cube.check()

Cheat cube.cheat() reverses all previous moves to return to starting (solved) state

Turn a face cube.white.cw() or cube.turn('white', 'cw) or cube.turn('w') lowercase means clockwise, uppercase means counter-clockwise

Solver solver = new Solver cube