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.
Boring is the best possible outcome.
God is the creator of Humans, and has no inner Human class, because no human is a god. Try it with three separate classes, and it should work fine. You just need to know the minimum about classes and inheritance to complete the task.
Yes. This could have been explained better.
Haha that was my thought to :D
It took me a while to figure that this is java 8. Nice for the ones who work with. But for the rest...
WTF...
There's no requirement in Java for classes to be in seperate files. It's obviously best practice in the real world but for simple academic exercises such as these it's perfectly acceptable to have all the classes in one file.
Boring.
As far as I know you can define multiple classes in one file as long as only one of them is public (although it's very messy).
This kata needs serious work.
Java
Now this is a high quality, well-written kata! It was fun to solve and the method scaffolding is appreciated.
Not having any previous genetic algorithm experience, one suggestion I have is to clarify the procedure of forming a new population.
At first it was unclear to me where the selected chromosomes had to go. Was the new population the old one with the two chromosomes replaced? Only after reading an article on the subject did I figure out that growing a new population is a separate concept from the evolution cycles. (Or at least I think it is, since my solution was accepted.)
Something fishy is going on with the test cases on submit:
So I made a single change in my code, I now return 0 on non-match to see what it reports:
What is going on here?!
Are the test strings pseudo randomly generated with the hash of my code as the seed?