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.
not a kata issue :-)
Very nice kata.
One thing I spotted is your check for to many doors.
One door only takes two spaces, not three as in your solution.
Second problem is the space character, you try to set the empty spaces to the ASCII 32 character,
but because chars aren't reference types the values in the array are not changed.
If you set every character in 'secondLayerChar' to a space right at the beginning, your solution works.
One other hint, you can use string::repeat instead of for loops.
This comment is hidden because it contains spoiler information about the solution
messed up printing
The printing are done after the test statement, which is pretty confusing IMO (usually they're put before the actual print statement).
Description updated / approved
Nice funny one! Quite hard to rank... (6,5 would be nice... ;) )
Some suggestions of things to add to the description:
"\n"
has to be added either in the middle part or the bottom part (same for the two upper parts, but there it is more evident).component
,Body
,Chassis
,Car.body
andCar.chassis
have to bepublic
Note: You surely noticed at what I said that I talk about Java. I don't know JS, so might be that some of my suggestions need some adjustments...
In any case, I liked it, really! :)
Cheers!