Ad
  • Default User Avatar

    Am I supposed to figure this out one number at a time? The 20th time thru gives a very large sequence!

  • Default User Avatar

    return something.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar
  • Default User Avatar

    You must also test to see if the value for a or b is a string. The solution requires you to reject a string value of "2" and accept a numeric value of 2.

  • Default User Avatar

    I totally agree. It's beyond level 8 kyu for knowledge and skill.

  • Default User Avatar

    I like the simple documenation.

  • Default User Avatar

    This line:

    earns one point and takes another turn

    could easily change to:

    earns one point and takes another turn only if another box can be made.

  • Default User Avatar

    More info for anyone looking at my solution:

    Set $debug to true, and one set of tests pass.

    Set $debug to false and the opposite sets pass.

    Why?

  • Default User Avatar

    Issue 1: Solved.

    I'm failing the test at "testInvalidName1". I'd like to echo out the name that I'm recieving from the form. However it looks like this is not possible. I'm trying to debug my code and trace back why mine is printing an empty string when it shouldn't be empty. Help would be appreciated. (The code was returning earlier than I thought and printing thus an empty string was printed).

    Issue 2: I'm failing the last test. It seems to remember the values from the warm up excerise and not the values set in the function. All other tests have been passed. What am I missing?

  • Default User Avatar

    I'm getting a strange result that the function is being called multiple times. PHP. I passed the first and second test. However during the second test the expected output is whacko. What am I missing?

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    The directions must include "Also modify the provided tests to test your function". Not satisfied at all with the directions. Writing tests is not applicable to level 8 katas.

  • Default User Avatar

    I'm passing all the first round of tests. When I attempt to final version and I'm getting wild expected values. For example 122 liters at 14.14 per liter expects 206708.26 to be returned. This is clearly NOT the expected returned value. Is there something I'm missing or is there something in the final attempt testing coding that is screwed up for the JavaScript portion?

  • Default User Avatar

    I'm not sure if you can look at my solution. It is running in MySQL on my local machine but throwing an error in codewars.com.

    Any help would be appreciated.

  • Loading more items...