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.
The table is a mapping between the number of the bowling pin and the index of that pin in the output string: 'I I I I\n I I I \n I I \n I '
For example, pin #7 is the first character in the string, index 0. Pin #8 is at index 2.
For each pin to be removed, I replace that index in the output string with a space.
This version might be a little clearer: