Created
March 15, 2012 23:32
-
-
Save tuzz/2047653 to your computer and use it in GitHub Desktop.
A potential project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubiks' | |
front = [:green, :green, :white, | |
:yellow, :green, :green, | |
:green, :red, :red] | |
back = [:green, :blue, :yellow, | |
:green, :blue, :orange, | |
:yellow, :orange, :white] | |
left = [:orange, :blue, :orange, | |
:white, :orange, :orange, | |
:orange, :white, :red] | |
right = [:red, :white, :yellow, | |
:white, :red, :red, | |
:blue, :blue, :red] | |
top = [:blue, :yellow, :orange, | |
:red, :white, :blue, | |
:white, :yellow, :blue] | |
bottom = [:white, :yellow, :yellow, | |
:red, :yellow, :orange, | |
:blue, :green, :green] | |
# Display the solution in opengl using the 'scene' gem | |
Rubiks.solve(:front => front, :back => back, :left => left, :right => right, :top => top, :bottom => bottom) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment