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 see you ran afoul of the t-rex, as well.
This comment is hidden because it contains spoiler information about the solution
Thanks!
This comment is hidden because it contains spoiler information about the solution
I've been playing with the
@property
and@x.setter
decorators recently in some of my code for work. It's not a comprehensive list, but I think I could write a kata to introduce the topic and demonstrate their use. I'll take a look tomorrow.Is there a reason you wrote a custom test function for your submission test cases, as opposed to using the built-in
Test.assert_equals(value, expected, message)
format? I rewrote the test battery in the kumite I just submitted to the kata - would that be a better option for testing?For the Python version, having the examples from the description translated to test cases would really be of benefit, unless part of the goal of the exercise is to write your own test cases for the code, in which case I kinda feel like that should be explicitly mentioned in the description. Here are the test cases that match the description examples, in case it helps:
I had honestly never run across the
capitalize()
method previously. That would eliminate thelist(map())
in here.Did not know about that method. Thanks!
This was fun! I'd never looked at ZMQ before, and I'm intrigued. The description gives pretty big hints as to what methods to use, but I still wound up having to look things up to verify that I was understanding the data flow correctly.
I did notice that the comment in the starting code block doesn't match the description or test cases.
There should be a comma after
<<specified beverage>>
.A pretty good fundamentals kata, with a simple solution that it's really easy to overthink (especially if you've just started learning).
I'd recommend including at least a couple of pre-submit test cases, for folks who are working on the fundamentals, and want to see the call with arguments while finding their solution. These are the ones I added when I built mine, if you want to use them:
The description also seems to be a bit wordy. Something as simple as this might provide the necessary clarity without confusion:
This comment is hidden because it contains spoiler information about the solution
When points reset due to lives dropping below 0, should other values (level, lives, ghost counts, ball counts, etc) reset, as well? That would seem to make sense, if I were designing an actual game from this, but isn't covered in the description.
I'd say that the description needs further clarification (see questions posted separately), and that test cases (at least for Python) need a lot of work. I started a kumite that, among other changes, adds meaningful feedback messages to the Python test cases, which may help.
Thanks!
Loading more items...