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.
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.
This reminds me very strongly of the program that served as the basis for the AQA AS level Computing programming exam in 2017 which I took. I remember it was in Python at the sixth form I went to, but I think C#, VB.NET, Delphi and Java existed as well for schools to use if they wanted.
Is this Kata inspired by that, or is that just coincidence?
No random tests.
And the fixed tests are kinda bad, the year never gets over 10. I suspect it's because the nature of the system is quite unbalanced.