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.
Hi,
Considering the rank of the kata, you should be able to get all the calls one way or another, but since it seems there is a problem and you're using python, define this at the beginning of your code:
TRACE_CALLS = True
. You'll have the complete trace so we'll be able to check what is incorrect. Come again with the assertion message and the complete trace of the calls, please.Cheers
Well, no news, closing. Feel free to continue the discussion if needed, of course.
I checked by hand only: Are you sure you didn't misspelled something in your example? because I end up with the following:
So C5 isn't linked to S14 as you wrote above (->
Atom(C.5: S14, C4)
).About this:
Seems that my code has Atom(C.15: C14,C16,C16) in a closed molecule which should be Atom(C.15: C14,C16,C16,H)
it's hard to say without the steps. A lot could happen at different steps before explaining the problem in different ways (atom mutated to H so at this step you have an unlocked molecule? Or is the molecule locked? ...?).Hi,
Thx for letting me know. I'll look into the whole thing later today.
About the exceptions, did you see the last foot note? =>
About the required exceptions classes, you can implement subclasses if you want, but their names will have to contain the name of the one originally expected.
And I'm not sure what you mean by an
unmutated exception
. Are you talking about subclasses, actually? But you are true about one point: this is suboptimal. If I had to do that again, I'd provide the exceptions so that I could always use the same manner to check for them. The thing is I didn't want to relay on the exceptions of the user (it could have been a way to cheat, even if not on purpose), and since I couldn't predict what would be the exceptions in the random tests, I needed my own set of them. That caused the mess.I'll keep you posted.
Thanks this Kata was published before Codewars offered Python 3 and it just made it out of Beta. I have updated using range instead of xrange. This issue should be resolved.