Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    There already are:

    Are you sure we need yet another matrix rotation task?

  • Custom User Avatar

    it looks alike but with differences:

    • spaces management
    • negative rotation
    • multi step rotation (n * 90°)
    • error management

    and as a kata suite, i think it's better suited for progression

  • Custom User Avatar

    done :)

  • Custom User Avatar

    This should be a translation on some existing kata, not a new one. This task definitely already exists.

  • Custom User Avatar

    oh! yes, the 1st form was a class, then i switched to a method. I fix that, thx

  • Custom User Avatar

    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) }

    describe "#rotate" do
      context "with 1x1 square" do
        let(:square) {
          [
            %w[A],
          ]
        }
    

    NameError:
    uninitialized constant Rotator

    ./spec/solution_spec.rb:1:in `<top (required)>'

    No examples found.

  • Custom User Avatar

    The description for this kata contains several ambiguities/issues.

    1. You state that if "the population of foxes and rabbits exceeds 1000, in which case it will return", "The population is out of control. Year X".

    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?

    1. Your description states that you expect 1 of 3 messages to be returned. Each of these messages end in "Year X". Your kata however expects each message to be termineated with a period "." .

    The kata description needs to be updated.

    1. It appears that you expect the three conditions to be checked only at the end of each year. If so you should explicitly state that in the description to clear up the ambiguity. Refer to the following example example.

    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.

  • Custom User Avatar

    Noted, Thank you for the feedback. You may check now if it works. Get back to me if it doesn't.

  • Custom User Avatar

    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.

  • Custom User Avatar

    You're very welcome, keep it up.

  • Custom User Avatar

    awesome, thanks for the help!

  • Custom User Avatar

    Great job!!! The problem has been resolved.

  • Custom User Avatar

    by Jove, I think I got it this time

  • Custom User Avatar

    apologies, for some reason it did not save.

    I'll be bach.

  • Loading more items...