In this challenge, You have to bring ASCII art (which are usually 2D) to 3D!
How?
like this,
X X DD X D D X X DD to...
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 N times.
- for every character (we will call this
A): - let
Bbe the character which is exactly 1 right and 1 up fromA - if
Bis a space or is undefined: - set
BtoA.
Specs
- 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.
Examples
Input: ("###\n###",1)
Output:
### #### ### Rules
Basic code-golf rules apply.
also, If you have questions, be sure to ask in the comments!