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.
I figured it out, but the long winded description sucked the energy out of me and it took me a rest to get up to speed with the slight mathematical thinking that this kata needs
C++ Translation
Cool kata! :)
This should really be 8 kyu
done, but the description's markdown code is starting to be really bloated...
duplicate issue
added to Python, Ruby, C#
done
done
done + added proper usage of the Python test framework
approved
Forked the JS translation with the only change being using an ES6 class in the setup code instead of a constructor function. Won't break compatibility with any of the constructor function solutions, but might nudge future users into making use of the modern OOP syntax in JS.
This Kata is about introducing users to OOP; however, the Python version abuses naming conventions in a way that could confuse beginners. When you see
test.assert_equals(EmptyShip.is_worth_it(), False)
in your test output, you would assumeis_worth_it
is a static method on a class namedEmptyShip
. At least, I did and it took me a good minute to realize it wasn't when I finally got to the linewhich breaks multiple Python naming conventions; instance variables should be in
snake_case
, andPascalCase
is for class and exception names.Solution-related issue. Maybe you've accidentally removed a line or misspelled an attribute name.
I am getting the following error:
AttributeError: 'Ship' object has no attribute 'draft
Is it a kata issue or problem in my solution?
Loading more items...