Rubik's Cube

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Rubik's Cube

Post by Acki »

Hi,
I just released my latest project !!!

!!! Acki's IrrCube !!!

It's a little programm that simulates the Rubik's cube !!! :)

!!! Check it out !!!

CU, Acki
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
jam
Posts: 409
Joined: Fri Nov 04, 2005 3:52 am

Post by jam »

arrggh! the dreaded Rubik's Cube. Don't know how many days I wasted trying to solve this puzzle. :evil:


Looks good Acki, really like the feature where you can see all six sides of the box on screen at once.
Eternl Knight
Posts: 313
Joined: Tue Nov 01, 2005 5:01 am

Post by Eternl Knight »

*laugh* I noticed you didn't include the solving algorithm in the code. Not that there is a lack of such algorithms (if you know how to use Google), but still amusing :P


--EK
sRc
Posts: 431
Joined: Thu Jul 28, 2005 1:44 am
Location: Salt Lake City, Utah
Contact:

Post by sRc »

Eternl Knight wrote:*laugh* I noticed you didn't include the solving algorithm in the code. Not that there is a lack of such algorithms (if you know how to use Google), but still amusing :P


--EK
lol that solving algorithm is pretty funny, i turned just one side and it went through a very long series of steps to turn that one side back :lol: :lol:

too bad i cant do rubiks cubes
The Bard sRc

Blog | Twitter
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

@Eternl Knight:
Well, call me a little bit paranoid... ;)
I created my algorithm in the 80th, when RC was verry popular...
With it I managed to be the local city champion !!! 8)
I also had a look at several solutions on the net, but no one gets close to mine...

@Anaconda:
that's right...
This is because the program doesn't check for already right placed cubes...
It does this steps:
1. solve upper edges
2. solve upper corners
3. solve lower corners
4. solve middle edges
5. solve lower edges
6. ready, solved !!!

So if just two cubes from the upper plane are screwed (it's impossible to screw only one cube) it has to solve the whole cube...
If just two cubes from the lower plane are screwed, it solves only the lower plane...

The complete solving is done by the system moves, placed on the left screen side (S1L, S1R, S2L, etc.) !!!
In fact you just need the system moves from number 4 (S4L, S4R, etc.)
The others are just to ease the solution by program...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
sdi2000
Posts: 131
Joined: Thu Aug 25, 2005 12:19 pm
Location: Berlin, DE
Contact:

Post by sdi2000 »

very nice
im also with jam... many days of frustrating and now i solved with ur help *hrhr* :D


weiter so...
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

I think my algorythm is one of the fastest ever !!! 8)
Even at slow speed (1) it needs only about 30 seconds to solve the cube !!!
Lets say your speed by hand is like medium speed (2) and you have a preatty fast eye and with many practice you're be able to solve the cube by a time about 30 to 50 seconds !!!
So, a really maniac could also reach the Guinnes record !!!! ;)
Well, as I told you, I never found any other algorythm that's faster and easier to use than mine...

Maybe one of you could do it faster !?!?!?! ;)

BTW, within my programs you can always press F1 for help...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Rambus
Posts: 96
Joined: Thu Nov 24, 2005 4:56 pm
Location: Canada
Contact:

Post by Rambus »

I forget why, but I wound up at the speed rubic cube associations website. They can do cubes by hand in around 20 seconds a pop :|

(They have their algorithms posted on the website, though they go into crazy uber math details they seem to follow the steps yours does.)

Anyways...
Neat program. :)
Post Reply