Follow us on Twitter!
Become the change you seek in the world. - Gandhi
Wednesday, April 23, 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: 27
Guests Online: 21
Members Online: 6

Registered Members: 82885
Newest Member: ConiBE
Latest Articles
View Thread

HellBound Hackers | HellBound Hackers | Questions

Page 2 of 2 < 1 2
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:52
I am using a multi dimensional array, it seems like a decent concept so far. The way I set up the array move horizontal rows in one swap, vertical are a bit more complicated but still not that bad. I will be using a session to store cube details so no mysql queries are needed.

Here is the key I will be using:
( the input for solving will be separated with a ';' )
C = clockwise
CC = counterClockwise


'f' = front C
'fi' = front CC
'b' = back C
'bi' = back CC
'l' = left C
'li' = left CC
'r', = right C
'ri' = right CC
'u' = up C
'ui' = up CC
'd' = down C
'di' = down CC
'v' = vertical C
'vi' = vertical CC
'h' = horizontal C
'hi' = horizontal CC

The reason I choose 'i' was for inverted. If anybody disagrees with the key now would be the best time to speak. there are a total of 16 valid spins.


"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

Edited by p4plus2 on 15-04-09 23:52
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:54
Nice, I would have suggested a multi-dimensional array, I think you've planned it really well.. it could be really good!


Author

RE: Rubik's cube challenge

p4plus2
Member

Your avatar

Posts: 167
Location:
Joined: 31.03.08
Rank:
Newbie
Posted on 25-04-09 03:41
Hey, I just figured Id give you guys a brief update...

The project is near completion but there is a glitch somewhere causing inconstancies, so if anybody is good with PHP and knows how a rubiks cube works(not necessarily solve, just how it turns) contact via aim or msn (p4plus2, p4plus2 [at] hotmail [dot] com)

Would appreciate it, if another person were to take a look at my source see if I overlooked an obvious flaw. After these flaws are tracked down it is practically finished!


"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
Page 2 of 2 < 1 2