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.
Wow, this seems like a pretty clever approach. Much more concise than the way I solved it! I still can't quite wrap my head around how
temp
works though. With a 3x3 grid and a move of[0,1]
, wouldn't that maketemp
-3 and result in an error when trying to incrementr.grid[temp]
on the next line?