in reply to (Golf) LED Sign
Why not just use this$_=join'',map{"$_\n"}@l[0,1,1,2,3,3,4];
Well, here's your improved code, it checks in at 223 chars:$_=join$/,@l[0,1,1,2,3,3,4];
sub f{ @c=qw[00700 00001 00000 75557 11111 71747 71717 55711 74717 74757 71111 75757 75717]; map{$l[$i++%5].=join'',(unpack("B8",chr)=~/(...)$/)[0,1,1,2],$"} map{split//,$c[ord($_)-45]}split//,pop; $_=join$/,@l[0,1,1..4]; tr/01/ X/;$_ }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (Golf) LED Sign
by tadman (Prior) on Jun 08, 2001 at 06:05 UTC | |
by dws (Chancellor) on Jun 08, 2001 at 06:09 UTC | |
by srawls (Friar) on Jun 08, 2001 at 06:09 UTC | |
by tadman (Prior) on Jun 08, 2001 at 06:12 UTC | |
by petral (Curate) on Jun 10, 2001 at 06:39 UTC |