In this challenge, You have to bring ASCII art (which are usually 2D) to 3D!
X X DD X D D X X DD
X X DD X X DD D X X DDDD X XDDD X X DD
Then How do we do that?
Given the ascii art and
N, repeat this
- for every character (we will call this
Bbe the character which is exactly 1 right and 1 up from
Bis a space or is undefined:
- The first input can be a string with newline characters or a list of strings representing the 2D ASCII art.
- You are allowed to use
%END%to tag the end of input, but this is not required.
- The second input will be
N. It will be a positive integer.
- all the lines of the strings will be the same length.
### #### ###
Basic code-golf rules apply.
also, If you have questions, be sure to ask in the comments!