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.
Yes, using getter and setter is a better way. But that is not what this kata asks for.
Python objects are free to intercept attribute get/set operations.
And, if all you're doing is getting and setting with no restriction, adding getters and setters for it would be writing a whole lot of code to do exactly nothing different from default behaviour.
I'm fairly new to Python OO programming, but is it advisable to access class variables directly? My understanding was to use "getter" functions, but that does not work here for v.x, v.y, v.z, and v.magnitude (v is the Vector) as they're specified and tested without function brackets (e.g,, v.x() )
Java Translation:
https://www.codewars.com/kumite/5ee65657e7c66100159dd331?sel=5ee65657e7c66100159dd331
I"m completely unclear on what is wanted here. It seems to want a dictionary for each room. Assume the key is the room name--are the values tuples, lists or something else? And is the overall structure a dictionary of room dictionaries, a tuple of dicts, or what?