| Author |
Rubik's cube challenge |
p4plus2
Member
Posts: 167
Location:
Joined: 31.03.08 Rank: God |
|
Well, I thought about coding up a timed challenge that would require you to solve a rubik's cube. Before I go and spend the time coding this I wanted to get some feedback from the community on whatever comments or concerns you have about it.
Even if you normally can't solve a cube you would be able to use other various methods such as sending the puzzle to a external source, which is still practice though not nearly as fun as solving it yourself you get some practice at curl .
Thoughts, comments, opinions?
"You can't be something your not,
Be yourself by yourself
Stay away from me" ~Walk, Pantera
"Playing an acoustic guitar is like having sex with your clothes on" ~Dave Mustaine |
|
| Author |
RE: Rubik's cube challenge |
darkpyroSG
Member

Posts: 99
Location: somewhere >_> idfk
Joined: 17.07.07 Rank: Apprentice Warn Level: 95
|
|
psh, Rubik's cubes are easy to solve but that would be interesting, wouldnt mind seeing that 
|
|
| Author |
RE: Rubik's cube challenge |
p4plus2
Member
Posts: 167
Location:
Joined: 31.03.08 Rank: God |
|
Yeah I recently got a 7*7 V-Cube, kills a lot of time in class 
"You can't be something your not,
Be yourself by yourself
Stay away from me" ~Walk, Pantera
"Playing an acoustic guitar is like having sex with your clothes on" ~Dave Mustaine |
|
| Author |
RE: Rubik's cube challenge |
c4p_sl0ck
Member

Posts: 380
Location: Sweden
Joined: 17.09.06 Rank: God |
|
We recently had a similar project in school. We were supposed to code a server and a client that would solve a soma cube. There you have to rotate each part and fit in. It was pretty hard but not impossible.
As for representation, it's probably best if you send it in text. Saying what color a certain bit is on the cube. Sending it in some special java thing will make it harder for people to use other languages.

 |
|
| Author |
RE: Rubik's cube challenge |
mastergamer
Member

Posts: 432
Location:
Joined: 07.02.06 Rank: God |
|
|
c4p_sl0ck wrote:
As for representation, it's probably best if you send it in text. Saying what color a certain bit is on the cube. Sending it in some special java thing will make it harder for people to use other languages.
This. You send us the colours for each square on the cube, and then we send back the list of rotations needed to complete the cube, which the server then executes to validate.
|
|
| Author |
RE: Rubik's cube challenge |
c4p_sl0ck
Member

Posts: 380
Location: Sweden
Joined: 17.09.06 Rank: God |
|
Just make sure that you construct a good protocol. We had one that sucked. 

 |
|
| Author |
RE: Rubik's cube challenge |
backslash
Member

Posts: 60
Location: United States
Joined: 18.03.09 Rank: God |
|
I'd be up for it, a challenge is always good. Does sound insanely difficult though.. cURL does sound like the way to go on this one, although I'm not too sure how you would present the "cube data" because it has 6-dimensions (6 sides) which are all affected by movement. Difficult to write the challenge and difficult to complete it... sounds good 
|
|
| Author |
RE: Rubik's cube challenge |
yours31f
Second to one

Posts: 1678
Location: Dallas Texas
Joined: 27.04.07 Rank: Satan |
|
The only thing about it is there is a move you can do that will solve a rubix cube in anywhere from 150-350 moves just by repeating it. i belive its
||^
--
-->
___
|-| (Spin the front)
<--
--
-->
||^
Debugging is what programmers do to beta software to make it take up more room on your hard drive if it is running too efficiently.

|
|
| Author |
RE: Rubik's cube challenge |
jjbutler88
Colemak User

Posts: 590
Location:
Joined: 22.04.07 Rank: Guru |
|
Well obviously there has to be something like that, were hardly likely to be expected to code some AI into a timed challenge are we??? Without a repeatable move or sequence this challenge becomes virtually impossible.
|
|
| Author |
RE: Rubik's cube challenge |
backslash
Member

Posts: 60
Location: United States
Joined: 18.03.09 Rank: God |
|
|
yours31f wrote:
The only thing about it is there is a move you can do that will solve a rubix cube in anywhere from 150-350 moves just by repeating it. i belive its
Yeah, that's true.. as long as they didn't get points as soon as it was complete.. they have to submit a value when they have completed it? And just for fun, only let them submit this once which means they will have to check themselves that the cube is complete, still some problems though
|
|
| Author |
RE: Rubik's cube challenge |
c4p_sl0ck
Member

Posts: 380
Location: Sweden
Joined: 17.09.06 Rank: God |
|
backslash wrote:
Yeah, that's true.. as long as they didn't get points as soon as it was complete.. they have to submit a value when they have completed it? And just for fun, only let them submit this once  which means they will have to check themselves that the cube is complete, still some problems though
Just once seems a little drastic, but one time per hour or something might be more realistic.

 |
|
| Author |
RE: Rubik's cube challenge |
backslash
Member

Posts: 60
Location: United States
Joined: 18.03.09 Rank: God |
|
Yeah, definitely needs a time delay anyway. Which means they would need to parse the cube themselves to see if it was complete or not. I'm assuming the cube would start in a random position each time?
|
|
| Author |
RE: Rubik's cube challenge |
x_5631
Member
Posts: 156
Location: Uk
Joined: 22.06.07 Rank: Mad User |
|
|
backslash wrote:
Yeah, definitely needs a time delay anyway. Which means they would need to parse the cube themselves to see if it was complete or not. I'm assuming the cube would start in a random position each time?
Yeah I agree with the random position each time.
However, just once per [time delay] would be pretty crap if this is going to be a timed challenge. Especially to those who're not fully experienced with their programming.. as a lot of the attempts may just be trying to get their code right.
Also, instead of doing the cube in 3D, if it would be difficult.. you could just do 2d displays of each individual face. I'm not sure if you already mentioned that, but I figured I would just incase.
|
|
| Author |
RE: Rubik's cube challenge |
backslash
Member

Posts: 60
Location: United States
Joined: 18.03.09 Rank: God |
|
Perhaps instead of a time delay, if they get it wrong it "resets" the challenge, so they have to start again? That way they can figure their code out and complete the challenge.
You know what would be cool, making a "3d" image with PHP GD 
|
|
| Author |
RE: Rubik's cube challenge |
Uber0n
Member

Posts: 1963
Location: Sweden
Joined: 13.06.06 Rank: God |
|
This is exactly the kind of challenge that HBH needs 

http://uber0n.webs.com/ |
|
| Author |
RE: Rubik's cube challenge |
p4plus2
Member
Posts: 167
Location:
Joined: 31.03.08 Rank: God |
|
Well thus far, based on the opinions I have seen these will be the following (rough estimate of features)
-2D cube(the original plan)
-I will randomize the cube based on the md5 hash of the time and a random number
-A 2-5 min delay between attempts to reduce flooding
-HTML based cube representation
If I missed anything in that list or you think I should add something lemme know ASAP 
"You can't be something your not,
Be yourself by yourself
Stay away from me" ~Walk, Pantera
"Playing an acoustic guitar is like having sex with your clothes on" ~Dave Mustaine |
|
| Author |
RE: Rubik's cube challenge |
c4p_sl0ck
Member

Posts: 380
Location: Sweden
Joined: 17.09.06 Rank: God |
|
Just remember to clearly state what the "protocol" is, e.g. how you tell the server to rotate it that way, etc. Can be a real pain in the ass if it's not clearly stated how all the details are supposed to be. 

 |
|
| Author |
RE: Rubik's cube challenge |
backslash
Member

Posts: 60
Location: United States
Joined: 18.03.09 Rank: God |
|
sounds like it's going to be an awesome challenge, definitely would have fun beating it. Yeah and as c4p_sl0ck said, make sure the details are stated clearly.
|
|
| Author |
RE: Rubik's cube challenge |
p4plus2
Member
Posts: 167
Location:
Joined: 31.03.08 Rank: God |
|
Perhaps I will place a version for people to "test with" on my site so they can watch how everything turns.
As of writing this I have the top and bottom rotations(counterclockwise and clockwise) done.
"You can't be something your not,
Be yourself by yourself
Stay away from me" ~Walk, Pantera
"Playing an acoustic guitar is like having sex with your clothes on" ~Dave Mustaine |
|
| Author |
RE: Rubik's cube challenge |
backslash
Member

Posts: 60
Location: United States
Joined: 18.03.09 Rank: God |
|
I'm really looking forward too seeing how it turns out. As long as you sort out the turns etc. then it will be awesome. Using arrays by any chance? I did something similar for an atonal matrix (music) in the past. Not quite the same though. Good luck!
|
|