Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Share Worlds (http://www.alice.org/community/forumdisplay.php?f=6)
-   -   Rubik's cube. (http://www.alice.org/community/showthread.php?t=4020)

Veryuhbull 03-04-2010 06:20 PM

Rubik's cube.
 
3 Attachment(s)
Here is a working rubik's cube.

-It shuffles itself in a way that should always be solveable. (Give it a a few seconds to shuffle)
-It can tell when you have completed it.
-The green sphere is used to turn the cube one side away.
-The red sphere is used to get a good view of all sides of the cube.
-You can click and drag the mouse to turn a row column or the whole cube.
-If you want to simply click. press the space bar to switch to a seperate mode where you click a sticker then a direction.
-I tested this for a while and it should be glitch free. (please report any, if there are any, so i can fix them.)

EDIT: fixed the red sphere niteshifter.
EDIT2: 1.4 added.

dubastot 03-04-2010 07:16 PM

I am glad to see you are back veryuhbull!

Niteshifter 03-04-2010 07:18 PM

Found something. While the cube is scrambling itself up and you press the red sphere, the cube's pieces will rotate themselves into a jumbled mess.

Veryuhbull 03-04-2010 07:29 PM

[QUOTE=Niteshifter;18011]Found something. While the cube is scrambling itself up and you press the red sphere, the cube's pieces will rotate themselves into a jumbled mess.[/QUOTE]

I actually knew about this and attemted to fix it but it evidently did not save the first time. reuploaded to fix.

jediaction 03-07-2010 07:53 AM

It never stops mixing up. I could probably solve 3/4ths of it. I can in real life

Veryuhbull 03-07-2010 10:15 AM

you guys
 
This is the second complaint about the shuffle. So i will attempt to address it. It takes less than a minute to shuffle (on my computer) and then you can go.

Are you really that impatent jediaction? (unless you have a valid bug.) I may attempt at some point to entirely rehaul the whole randomize method to account for impatient people.

The reason it goes that slow is because i use a randomized pick from all cubes. It then calls the turn methods. I tried copying the code into the method to cut out the call time but that changed nothing.

So i am inclined to believe it is the "selected" set value to random item. that causes the slow down. Even when i set the world speed multiplyer on an unreasonablly high number it does little. (maybe shaving off a second or two.)

If this is so painful a problem i might just scrap that method for a psuedo-random one. Any suggestions would be gladly accepted.

EDIT: I scraped the old and created a better faster method that is still random.

jediaction 03-08-2010 07:43 AM

I sped it up x10 for a minute. It never takes that long

Veryuhbull 03-08-2010 05:20 PM

Actually the speed slider bar does nothing to my world because the program can't be handled in alice. (i think) I currently am slashing my code (removed about 200 lines so far) to simplify everything, hopefully speeding it up.

EDIT so now i can get a light speed shuffle that breaks itself, now searching for what caused the problem.

EDIT2: fixed the break problem. 1.4 is actually now smaller due to coding changing and works better than before.

Dameria 03-08-2010 06:32 PM

I have finally had the chance to look at the program, and these are the complaints I had:

1. There is really no need to have it shuffle for more than 20 times. Anything more than that is just time-consuming.

2. There is a very small time period between when you click the square and when the row moves which is annoying at first, but I got used to it.


Other than that it is a great program with almost no flaws!! I did notice however as the cube was shufflying, on the last shuffle i clicked a square and the entire cube just fell apart :confused:. Other than just, just please reduce the time it takes to shuffle to at the most 15 seconds, and it will be a perfect program.

jediaction 03-08-2010 07:24 PM

[QUOTE=Veryuhbull;18146]Actually the speed slider bar does nothing to my world because the program can't be handled in alice. (i think) I currecntly am slashing my code (rmoved about 200 lines so far) to simplify everything, hopefully speeding it up.

EDIT so now i can get a light speed shuffle that breaks itself, :( now searching for what caused the problem.[/QUOTE]


I could speed it up


All times are GMT -5. The time now is 03:40 PM.

Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.