Beta

Road To Nowhere - Reverse engineer this picture

Description
Loading description...
Puzzles
  • Please sign in or sign up to leave a comment.
  • Voile Avatar

    There should be sample tests provided. We shouldn't have to attempt the kata just to see the fixed tests again.

  • Blind4Basics Avatar

    your images are in jpeg, with highly arguable rescaling operations => there are antialiasing effects on the borders of the squares, meaning it's close to impossible to actually know what the true shapes are at each size. To resolve this:

    1. use png, instead of jpg (or any other uncompressed format)
    2. generate the images based on the output of your function, so that we can see the exact expected behaviour.

    Note: last point is not enough to close the issue below.

    Note²: same problem in the other version, ofc.

    • Kacarott Avatar

      Only the first uses jpeg The first is also png? However the quality is not as good as the others. I believe the others are generated by his function.~

    • Blind4Basics Avatar

      no, they are jpg too. Or at least, there was a compressed step at some point, because I see shades on the borders of the sqaures too. It's just less obvious than the first where you see squares apparently of different sizes just by looking at it without zooming.

  • JohanWiltink Avatar

    Kata requires rounding of floating point values but does not test with a margin for error.