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.
This is why knowing math is helpful for computer science facepalm
Ah yeah, my bad. Forgot to click it.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This isn't good practice because you're mutating the field. There is no reason for mutation to take place, and you shouldn't need to duplicate the data either. Remember the field parameter for validate_battlefield(field) is a reference, so you've just mutated the original 2D array.
Nice, never though of this. This was one extra step to making it much neater by adding the default function identity().
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution