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.
OK. I'm working on a different one.
As dfhwze has written above, this a nearly similar kata. The other ones are already have to much satisfaction rate to change.
Just how chess can be played with just bishops and rooks, the solar system can be contracting.
Fixed it.
Now
"Earth"
(and"Venus"
) will leave the orbit.Now the return should be
"No planet won!"
for either empty list in input or empty list after game (for good code that would be the same). It still expects"It is a tie!"
if there are planets in the solar syste, but it's a tie.Fixed it!
Added example with
Saturn
becauseNeptune
is already part of the other example, and anyway,Neptune
doesn't have four moons.It's like saying that
.
is used for full-stops and shouldn't be used for dot balls in this kata. So just think I'm re-inventing the>
symbol.This comment is hidden because it contains spoiler information about the solution
A little similar to Difference of 2.
Added input assertion messages on failure.
Thank you!
As the input is a string, it won't modify the input, that only happens with lists.
This comment is hidden because it contains spoiler information about the solution
Loading more items...