Skip to content

Instantly share code, notes, and snippets.

@tuzz
Created March 15, 2012 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuzz/2047653 to your computer and use it in GitHub Desktop.
Save tuzz/2047653 to your computer and use it in GitHub Desktop.
A potential project
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