How PHP helped me solve the Rubik’s cube

24 January 2010| 4 Comments| Print

I was set a challenge last week to complete a Rubik’s cube after tinkering with one by a colleagues desk and managing to get a complete line of matching colours with little effort. In the past i’ve never fully understood the concept and complexity of how to complete this popular 80′s puzzle. However the same way as a programmer I work out the right way to complete a coding issue by using a set of pointers and algorithms, the same is applies to completing the Rubik’s cube. There are a set of specific moves or algorithms that have to be repeated in come cases in order to get certain pieces in the correct place, the same logic of which can be applied to PHP, and indeed most programming languages, it’s this programming logic that allowed me to complete the Rubik’s cube. Although don’t ask me to do it again! In the end it actually took me about an hour to complete but this was after re-doing the first two rows many times so many I can’t count. So if you want any tips to solving the puzzle let me know fairly quickly as I will probably forget before too long.


Share:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Google Bookmarks
  • DZone
  • Reddit
  • Netvibes

4 Comments

  • developar

    From the title I thought the guy went out of control & wrote a PHP code to help solving it :D

    I didn’t had a lot of time with Rubik cube, but when I tried it lately my mind just went off!

    So yeah if you have some tips I might try again.

  • Ashley

    @Developar ha ha that would be awesome i might give it a go ;) You should certainly give it a go.

  • developar

    Hehe it would be a nice idea but anyway I don’t have any clue about the methods used to solve it, but who knows ;)

  • Rex C. Ballester

    Google it and watch thousands of tutorials from youtube ranging from 2×2 to 5×5 rubiks cube. You will surely learn to solve the most popular 3×3 rubiks cube maybe after a week of practice and memorizing the algorithms.

Leave a comment...

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled site. To get your own globally-recognized-avatar, register at Gravatar.

Your Ad Here