Skip to content

Latest commit

 

History

History

bowling-pins

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Did you ever play Bowling? Short: You have to throw a bowl into 10 Pins arranged like this:


I I I I  # each Pin has a Number:    7 8 9 10
 I I I                                4 5 6
  I I                                  2 3
   I                                    1

You will get an Array with Numbers, e.g.: [3,5,9] and remove them from the field like this:


I I   I
 I   I
  I   
   I   

Return a string with the current field.

Note

String.prototype.replace() is not allowed!

  • You begin a new line with \n
  • Each Line must be 7 chars long
  • Fill the missing pins with a whitespace