How PHP helped me solve the Rubik’s cube

How PHP helped me solve the Rubik’s cube

1 Star2 Stars3 Stars4 Stars5 Stars
Posted on January 24, 2010

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.

More tutorials from Papermashup
Comments
4 discussions around How PHP helped me solve the Rubik’s cube
  1. Rex C. Ballester says:

    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.

  2. developar says:

    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 ;)

  3. developar says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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

Looking for a registry cleaner to speed up your PC and show a full diagnostics?
Faster surfing with Dish Network High Speed Internet

Never miss an update from Papermashup

Get notified about the latest tutorials and downloads.

Subscribe by Email

Get alerts directly into your inbox after each post and stay updated.
Subscribe
OR

Subscribe by RSS

Add our RSS to your feedreader to get regular updates from us.
Subscribe

Get in contact

Please use the form below to get in touch.

About Me

I'm Ashley Ford, Co-founder and Technical Director at Harkable.com London, UK. Previously I worked at InMobi, Spotify and MySpace. My interests include photography and making short videos I'm also an avid F1 fan. I'm always working on side projects. Here are a few: Easy Poll, We Deliver.



What do you specialise in?

I spend a lot of time coding in PHP and MySQL, as well as front end XHTML and CSS. I also specialise in javascript and the jQuery framework as well as being an avid designer. You can find me on dribbble

Interested in advertising?

If you'd like to advertise on Papermashup.com you can find details here Or use the contact link below for further advertising opportunities.

How do I contact you

You can contact me here. and I'm available for consultation, freelance, programming book reviews.

Get on the mailing list

Join over 3000 people who have subscribed to the Papermashup inbox message, and be the first to find out about tutorial, competitions and giveaways.