Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

66%
+2 −0
Challenges Gamer Meme Creator

Japt, 19 bytes Takes the artwork as an array of lines and the string as the second input. If we can require that the artwork be right padded with spaces on each line so they're all the same length...

posted 2y ago by Shaggy‭

Answer
#1: Initial revision by user avatar Shaggy‭ · 2021-08-03T08:25:16Z (over 2 years ago)
# [Japt](https://github.com/ETHproductions/japt), 19 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)

Takes the artwork as an array of lines and the string as the second input. If we can require that the artwork be right padded with spaces on each line so they're all the same length then the first 2 bytes can be removed but I suspect that them _being_ different lengths is integral to the challenge.

    ú iV p`Þ­om ’xt`u)û

[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=tw&code=%2biBpViBwYN6tb20gknh0YHUp%2bw&footer=Vrc&input=IiAgICAgICAgXwogICAgLi0tJyB8CiAgIC9fX19eIHwgICAgIC4tLS4KICAgICAgICkgfCAgICAvICAgIFwKICAgICAgLyAgfCAgL2AgICAgICAnLgogICAgIHwgICAnLScgICAgLyAgICAgXAogICAgIFwgICAgICAgICB8ICAgICAgfFwKICAgICAgXCAgICAvICAgXCAgICAgIC9cfAogICAgICAgXCAgLyctLS0tYFwgICAvCiAgICAgICB8fHwgICAgICAgXFwgfAogICAgICAgKCh8ICAgICAgICAoKHwKICAgICAgIHx8fCAgICAgICAgfHx8CmpncyAgIC8vXyggICAgICAgLy9fKCIKCiJIZWxsbywgV29ybGQhIg)

    ú iV p`...`u)û     :Implicit input of array U & string V
    ú                  :Right pad each element in U with spaces to the length of the longest.
      iV               :Prepend V
         p             :Push
          `...`        :  Compressed string "bottom text"
               u       :  Uppercased
                )      :End push
                 û     :Centre pad each element with spaces to the length of the longest