cielavenir

CodeIQ 137 [311bytes]

Dec 24th, 2012
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // https://codeiq.jp/ace/yanai_masakazu_atmarkit/q137
  2. return [1,1,1,1].map(function(e,a){for(e=[i=y=0];y<40;y++)for(e[y]=[x=0];x<80;x++)z=y/8|0,e[y][x]=Math.abs(x-40)<(y-z*4)%(z*8+8)?"%":"_";for(;i<160;i++)r=(a+i)*i*49999+59999&65535,e[y=1+r%38][x=1+r%78]="*",e[y][x-1]=e[y][x+1]="-",e[y-1][x]=e[y+1][x]="|";return e.map(function(e){return e.join("")}).join("\n")})
Advertisement
Add Comment
Please, Sign In to add comment