# Rubiks cube

Show 80 post(s) from this thread on one page
Page 1 of 2 12 Last
• 02-01-2003
Rubiks cube
I'm celebrating the completion of my first OpenGL project, a fully functional Rubik's cube (keyboard control only so far). Thanks to everyone here who helped, whether you know you helped or not. Reading other posts to the board has been very helpful. Thanks again everybody.
• 02-01-2003
Munkey01
Well to thank the board more why don't you post the source to it so that you can help others?
• 02-01-2003
Travis Dane
Congratulations.
Do you have the binary somewhere online? I'l bet some love to
see it!
• 02-02-2003
I don't know how to post to a website directly. It's about 1400 lines long so I didn't think I should post the entire thing, but here's the code. I might go back later and try to trim some code, but for now prefer the (semi) clarity of the current form. Hope it works for you:

NOTE:
To find the file previously posted here go to my post later in this thread. Sorry about posting it all here before. Will use file attachments now that I know about them.

I think that should do it anyway. This just sets up a cube and is the first step in a (dream) program to solve an arbitrary cube using an existing algorhithm found online.

The cube/cubes/disks is/are always in the same orientation relative to the screen; that is the T face/disk is always on top after every twist, the F face/disk is always in front after every twist, etc..

The major cube has 27 minor cubes. All cubes have six sides, top, bottom, front, right, back, and left. There are nine disks, three for each of the three axis, and are gruoped by the axis on which they rotate. They are: Y axis THB, X axis LVR, Z axis FCK. Caps alone is twist the indicated disk clockwise 90 degree, Cap with suffix m is twist the indicated disk counterclockwise, Cap with suffix 2 is twist the indicated disk 180 degrees (counterclockwise), and Cap with prefix w is whole cube rotation as indicated by given suffix. Clockwise and and counterclockwise are determined by looking at the THB disks from the top face, LVR from the right face, and FCK from the front face of the cube. All twists are controlled by the keyboard only, no mouse activation (yet).
• 02-02-2003
Magos
Wee, you know that you can attach files when posting here, don't you? :)
Please post the exe, I'd really like to try it.
• 02-02-2003
pode
this must be the longest code ever posted!
• 02-02-2003
In fact I didn't know about the file attachment capability (guess I never paid attention to the area below the input screen). I'll try it and edit away most of the prior post if successful. Thanks.

Well, file seems downloadable for any that want to make the effort. Have fun. I'll see if I can load the executable file later.
• 02-04-2003
Unable to post the .exe to the board by attaching it to the message according to the error message I get when attempting to do so. Sorry.
• 02-04-2003
PJYelton
Can you zip it?
• 02-05-2003
Again, something I've never tried. Never really had anything I wanted to "share with the world" before, so no need previously. I'll try lookig into it.
• 02-07-2003
If it works, the attached file is a zipped version of the .exe for the cube.
• 02-07-2003
Travis Dane
You need this to run the program
• 02-07-2003
Perspective
very cool, you should consider a "save" feature so people can attempt to finish one over time. but definatly well done!! i like it
• 09-26-2008
nonoob
Hmmmmm. No more interest in Rubik's Cube?
• 09-26-2008
matsp
You really shouldn't "wake" old threads. It's in the rules. And "old" usually means more than a few days. This thread isn't just a corpse, there's little left of the coffin, and the body is all but gone, and nearly only the bones remaining.

--
Mats
Show 80 post(s) from this thread on one page
Page 1 of 2 12 Last