rubik's cube

Blitz3D Forums/Blitz3D Programming/rubik's cube

stayne(Posted 2005) [#1]
anyone made one yet? if not, i'm gonna give it a whirl.

oh... and yeah... it should have a "solve" function :)


Ferret(Posted 2005) [#2]
I like the idea, go for it :)


big10p(Posted 2005) [#3]
Good luck writing the 'solve' function - you'll need it! :P

[edit]actually forget that. As soon as I posted, a way of doing it occured to me. :)


Who was John Galt?(Posted 2005) [#4]
@10p - how?


big10p(Posted 2005) [#5]
Start with a 'solved' cube then record all the moves to mix it up. Apply all the moves in reverse order to solve.

Not very elegant and won't necessarily give you the quickest solve, but it should work... I think. :)


stayne(Posted 2005) [#6]
almost. it will have to record every move starting from the state it was in from before it was mixed up to when you click "solve". but you're right, that's the easy way out :).


Perturbatio(Posted 2005) [#7]
http://lar5.com/cube/
http://wiki.playagaingames.com/tiki-index.php?page=5x5x5+Cube+Solution


big10p(Posted 2005) [#8]
almost. it will have to record every move starting from the state it was in from before it was mixed up to when you click "solve".
That's what I mean't when I said "Start with a 'solved' cube then record all the moves to mix it up". ;)


Who was John Galt?(Posted 2005) [#9]
Nice one Pert but I prefer 10p's method - I can understand it at least!


Perturbatio(Posted 2005) [#10]
http://www.google.co.uk/search?q=how+to+solve+a+rubiks+cube&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official


stayne(Posted 2005) [#11]
if you're looking for solver code, there's plenty here:

http://www.wrongway.org/?rubiksource

kinda takes the fun out of it though.