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.
TRUE EVEN THO IM POSTING THIS 7 MONTHS LATER
Do you know what a pure function is? Look it up if you don't.
If the solution to this kata were a pure function, it will clearly not work. Therefore...
um i don't understand how??? i have looked at it for a while and i can't figure it out. i mostly d ojava, but javascript is really simiar.
actually nevermind
Yes, and you have to write your function so the argument is optional.
This comment is hidden because it contains spoiler information about the solution
That's part of the task. Not a kata issue.
for python, it gives its error
Traceback (most recent call last):
File "/workspace/default/.venv/lib/python3.11/site-packages/codewars_test/test_framework.py", line 112, in wrapper
func()
File "/workspace/default/tests.py", line 9, in basic_test_cases
test.assert_equals(how_many_light_sabers_do_you_own(), 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: how_many_light_sabers_do_you_own() missing 1 required positional argument: 'name'
ok fine, i get your point , and this kata has been rertied allready , but their are katas that are far easier, such as "Get nth even number"
i mean the postive ratings, 0% of people gave a positive rathing, translateing to 100% of responders hate it, right?
You're asking for feedback and that's what you got, I don't see any hate in the previous comments. I'd add, add random tests, they're mandatory, have you read Kata authoring guide yet? https://docs.codewars.com/authoring
why does eveyone hate it?
am i doing something wrong?
Fixed
This comment is hidden because it contains spoiler information about the solution
sorry, avoid java for now, working on it!
(now good)
Loading more items...