Papermashup

Subscribe


Tweets


"RT @bethgordon: .@Tesco Please rethink archaic 'Approved by Mums'. Pretty sure it's not just mothers who make childcare decisions. https://…"

@ashleyford 2 days ago

"Is there ever a time that @DFS doesn't have a sale on?"

@ashleyford 6 days ago

Designer and web developer, Co-founder and Technical Director at Harkable.com. Previously I worked at Spotify, MySpace and InMobi. Contact me - ashley[at]papermashup.com

How PHP helped me solve the Rubik’s cube

AshleyAshley

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.

Designer and web developer, Co-founder and Technical Director at Harkable.com. Previously I worked at Spotify, MySpace and InMobi. Contact me - ashley[at]papermashup.com

Comments 4
  • Rex C. Ballester
    Posted on

    Rex C. Ballester Rex C. Ballester

    Reply Author

    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.


  • developar
    Posted on

    developar developar

    Reply Author

    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 😉


  • developar
    Posted on

    developar developar

    Reply Author

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

    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
      Posted on

      Ashley Ashley

      Reply Author

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