Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Am I supposed to figure this out one number at a time? The 20th time thru gives a very large sequence!
return something.
This comment is hidden because it contains spoiler information about the solution
I learned a new function. Thank you.
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.
I totally agree. It's beyond level 8 kyu for knowledge and skill.
I like the simple documenation.
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.
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?
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?
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?
This comment is hidden because it contains spoiler information about the solution
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.
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?
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...