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.
... if isinstance(self.listgrid[0][0], bool): return False ...
Do I understand correctly that this line exists only to counter the specific check, where we are given a board [[True]]?
If so then this algorythm is not general enough. It will fail to validate a board where boolean value comes on any other position than [0][0].
I like how you divided each type of check into separate iterators. Very tidy!
Readable, clean and tidy. Love this one!
One of the best. I can't click best practices with so many pep8 violations though.
Actually, this didnt strike me as too complicated and I got a nice solution using recursion.
However, when looking at the other (non-recursive) solutions provided by you guys, I have no clue how/why they work...
Yeah, pretty stingy !
Maybe it would be worth mentioning in the description that 'x' is the first dimension of the map while 'y' is the second.
I got confused by the layout of the map given in the description, i.e
map = [[True, False],
[True, True]];
which suggests that for example {x:1, y:0} is false (while in fact it is {x:0, y:1} == False)
nice kata; took me quite a while to figure out. did it way to complicated still...
Nice kata, although the checking for correct input datatypes was a bit annoying