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.
This kata's description doesn't match the actual kata. The description asks us to return each of the elements in the diagonal of a 2-dimentional list while the actual kata is looking for the two largest elements to be returned.
I really enjoyed this kata. I do however have a couple of suggestions to improve your kata's description. In the Input section of the kata's description, you currently state "Jump back to the matching command #7 if the cell under the pointer is 1" for the "]" command. It should however state "Jump back to the matching command #7 if the cell under the pointer is non-zero". I also suggest that you explicitly state how your kata expects EOF conditions to to be handled for the "CAT" programs.
I think that there might be a problem with the Python translation with respect to a few of the random tests. The following three boards reported that "True should equal False":
x x x
o o x
o o x
================
x x o
o x o
o x x
============
o x x
o x o
x x o
In the first case, if the last move was placing an "X" in the upper right corner, wouldn't this be a valid board position? In the last two examples, if the last move was placing an "X" in the center of the board, wouldn't this also be a valid board position?
Please note that this problem is happening with very low frequency. If you hit the "Attempt" button a couple of times, you will eventually pass all the random tests.
NOTE: I am assuming that the players don't always make the most advantageous move.
The preloaded solution for this kata contains a function named "two_oldest_ages(ages)" which doesn't match the kata's description. This kata's details section should be written in English, which is the Codewars standard.
You don't have any "tests".
The tests for this kata are flawed. If you "null" out all spots for shoes in the ShoeRack and then submit that as your result, you will pass 100% of the tests.
Encountering the following error:
An error occurred while loading ./spec/solution_spec.rb.
Failure/Error:
RSpec.describe Rotator do
subject(:rotation) { described_class.new(square).rotate(degrees) }
NameError:
uninitialized constant Rotator
./spec/solution_spec.rb:1:in `<top (required)>'
No examples found.
The description for this kata contains several ambiguities/issues.
What do you intend this to mean? If the poplulation of foxes AND the population of rabbits both exceed 1000, you return the message? If the sum of the foxes and rabbits exceeds 1000, you return the message? If the popluation of foxes OR the population of rabbits exceeds 1000, you return the message?
The kata description needs to be updated.
Year = 0
foxes = 999 rabbits = 1
Year = 1
In the Spring, the rabbit population doubles and the fox population is increased by 50% resulting with: foxes = 1498; rabbits = 2
In the Summer, each fox eats a rabbit, resulting with: foxes = 1498; rabbits = 0
In the Autumn, hunters kill 20 foxes, resulting with: foxes = 1478; rabbits = 0
With this example, your kata expects the response to be "All rabbits were eaten. Year 1." However, at the end of the Spring in year 1 there were 1,498 foxes, which implies that the response should be "The population is out of control. Year 1." since the fox population exceeds 1000 and there are still 2 rabbits alive.
I'm receiving an "Exit Code 1" error message "Response received but no data was written to STDOUT or STDERR." when attempting to test my code by hitting the "Test" button. When I execute my code by hitting the "Attempt" button, all tests pass. The "test" button is not functioning correctly.
Great job!!! The problem has been resolved.
Unfortunately, I'm still experiencing the same problem.
There appears to be a problem with the Coffeescript version of this kata. For approximately 15% of the tests, I'm seeing an invalid player array being passed into the test. In one case, the players array contains [0, 1], indicating that Alice is playing Bob even though they are on the same team. In another case, the players array contains [1, 1], indicating that Bob is playing himself.
In your kata's description you state "max_num is a number that includes all indices in the array from 0 to max_num. Task Return an array from 0 to max_num, where the index corresponds to the number." The way that I first interpreted your description is that the resulting array should include an index for "max_num". I think that your description would be clearer if you explained that the resulting array should contain an "array from 0 (inclusive) to max_num (non-inclusive)".
The "random tests" for the Ruby version of this kata has a problem. If "n" is a prime number, the random tests expect "1 => 1" to be included in the response in addition to "n => 1". This problem does NOT occur for the fixed tests however. Here are some examples of the errors that I received when "n" was a prime number: Expected: {393541=>1, 1=>1}, instead got: {393541=>1}; Expected: {240743=>1, 1=>1}, instead got: {240743=>1}; Expected: {101939=>1, 1=>1}, instead got: {101939=>1}. The random tests do work correctly when "n" is not a prime number.
Both the Python version and Javascript version of this kata is broken.
Loading more items...