91
13
Adam West passed away, and I'd like to honor his memory here on PPCG, though I doubt he knew of our existence. While there are many, many different things that this man is known for, none are more prominent than his role as the original batman. I'll always remember my step-father still watching the old-school Batman and Robin to this day. This challenge is simplistic in nature, not at all in line with the complicated man that was Adam West. However, it's the best I could come up with, as this is the most iconic image of the man's career.
I wanted to post this earlier, but I was waiting for someone to come up with something better.
Output the following (with or without trailing spaces/newlines):
* *
**** * * ****
**** ******* ****
****** ******* ******
********* ********* *********
***********************************************
*************************************************
*************************************************
*************************************************
***********************************************
***** ********************* *****
**** *** ***** *** ****
** * *** * **
This is code-golf, the lowest byte-count will win.
We start by pushing thirteen integers onto the stack, whose bits represent half of the pattern of the bat (the other half being a reflection). Each of these integers is offset by two, since that makes their Befunge representations slightly more compact.
We then start the main loop, which will process one line/integer at a time. We subtract two to account for the offset, and we push push a null terminator and a newline onto the stack for later use when writing out the second half of the line.
Next we get to the inner loop which iterates over the 25 bits in the number, taking the value mod 2 to extract a bit, and performing a table lookup on column 8 of the source (
) to obtain the character to output. The character is also pushed onto the stack for later use.
Once this loop is complete, the first half of the line has been output, and the characters for the second half are in place on the stack in reverse order. We then simply output those characters with a standard string output sequence, and return to the start of the main loop.
7You should forbid encoded strings. It is really not fun! – sergiol – 2017-06-13T22:47:38.910
7He wasn't the original Batman. That honour belongs to Lewis Wilson. – Shaggy – 2017-06-13T22:55:46.403
43When I saw the title, I thought the output was going to be "na-na-na-na-na-na-na-na na-na-na-na-na-na-na-na". – D Krueger – 2017-06-14T02:36:31.510
3@DKrueger: make it so in another question :) – Olivier Dulac – 2017-06-14T14:46:13.493
4Why didn't this start last year? Carrie Fisher, Prince, David Bowie and Alan Rickman! – caird coinheringaahing – 2017-06-14T20:58:26.160
3
@DKrueger is
– Patrick Roberts – 2017-06-15T02:29:39.267Array(17).join("wat"-1)close enough?Do we have to use space and
*or are any two unique chars okay? – TheLethalCoder – 2017-06-15T10:50:52.5802@TheLethalCoder 27 submissions all using * and space so we're sticking to that. – Magic Octopus Urn – 2017-06-15T13:25:14.210
1Are extra spaces allowed at the end of a line? – Joel Coehoorn – 2017-06-15T21:18:12.637
@DKrueger There's (sort of) already one of those: https://codegolf.stackexchange.com/questions/67893/what-song-is-playing
– Pharap – 2017-06-16T01:22:56.703@PatrickRoberts I remember my webdev friend showing me that when we were in college together very shortly after the initial broadcast. (And thus I stayed clear of Javascript for a very long time.) – Pharap – 2017-06-16T01:28:16.670
Hold the door! Hold the door! Hod de door! Hodddeor! Hoodoor! Hodor! – None – 2017-06-16T02:49:38.897
You may return to your harpsicord. https://youtu.be/gT5dzaje1dE?t=26
– Wossname – 2017-06-16T21:18:59.417You may enjoy the Game of Life version I've added to my Python answer.
– PM 2Ring – 2017-06-17T12:02:21.233