Follow us on Twitter!
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill
Sunday, April 20, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 24
Guests Online: 22
Members Online: 2

Registered Members: 82843
Newest Member: hx47
Latest Articles
View Thread

HellBound Hackers | HellBound Hackers | Questions

Page 1 of 2 1 2 >
Author

Rubik's cube challenge

p4plus2
Member

Your avatar

Posts: 167
Location:
Joined: 31.03.08
Rank:
Newbie
Posted on 15-04-09 00:02
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
p4plus2@hotmail.com
Author

RE: Rubik's cube challenge


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 05:22
psh, Rubik's cubes are easy to solve but that would be interesting, wouldnt mind seeing that Grin


Author

RE: Rubik's cube challenge

p4plus2
Member

Your avatar

Posts: 167
Location:
Joined: 31.03.08
Rank:
Newbie
Posted on 15-04-09 06:05
Yeah I recently got a 7*7 V-Cube, kills a lot of time in class Pfft


"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
p4plus2@hotmail.com
Author

RE: Rubik's cube challenge


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 10:53
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


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 11:47
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


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 12:01
Just make sure that you construct a good protocol. We had one that sucked. Sad


Author

RE: Rubik's cube challenge


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 12:53
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 Grin


Author

RE: Rubik's cube challenge

yours31f
Member



Posts: 1678
Location: Dallas Texas
Joined: 27.04.07
Rank:
Elite
Posted on 15-04-09 12:56
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

Code


||^   


--
-->

___
|-|         (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.


img259.imageshack.us/img259/3713/sigr.png

yours31f@live.com yours31f@yahoo.com rpwd.info
Author

RE: Rubik's cube challenge


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 13:02
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


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 13:03
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 Wink which means they will have to check themselves that the cube is complete, still some problems though


Author

RE: Rubik's cube challenge


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 13:10
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 Wink 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


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 13:13
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


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 16:46
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


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 16:57
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 Wink


Author

RE: Rubik's cube challenge

Uber0n
Member



Posts: 1963
Location: Sweden‭‮
Joined: 13.06.06
Rank:
Hacker Level 3
Posted on 15-04-09 22:22
This is exactly the kind of challenge that HBH needs Grin


img230.imageshack.us/img230/724/uber0nsig3hj6.gif
http://uber0n.web. . .
Nope http://uber0n.webs.com/
Author

RE: Rubik's cube challenge

p4plus2
Member

Your avatar

Posts: 167
Location:
Joined: 31.03.08
Rank:
Newbie
Posted on 15-04-09 23:13
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 Smile


"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
p4plus2@hotmail.com
Author

RE: Rubik's cube challenge


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 23:17
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. :angry:


Author

RE: Rubik's cube challenge


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 23:24
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

Your avatar

Posts: 167
Location:
Joined: 31.03.08
Rank:
Newbie
Posted on 15-04-09 23:28
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
p4plus2@hotmail.com
Author

RE: Rubik's cube challenge


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-04-09 23:31
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!


Page 1 of 2 1 2 >