Ad
  • Default User Avatar

    Yes I had the same problem about not accounting for peices blocking eachother. Decided to scrap what I had and start over :/

  • Default User Avatar

    Newer version of ruby has a built in digit method (it's what I wrote, but reversed for some reason... havn't looked at the source code. I find it way more useful this way though)

    also, newer ruby has a sum method, which is essentially the same as reduce(:+)