Skip to content

Instantly share code, notes, and snippets.

@Kuniwak
Created December 27, 2012 15:59
Show Gist options
  • Save Kuniwak/4389308 to your computer and use it in GitHub Desktop.
Save Kuniwak/4389308 to your computer and use it in GitHub Desktop.
CodeGolf の215文字(7位)の回答です。 @itコラボ企画「もしもエンジニアがサンタだったら」 クロノス・クラウン合同会社 柳井 政和さんからのJavaScriptの問題 https://codeiq.jp/ace/yanai_masakazu_atmarkit/q137
for(C=[c=j=4];c--;C[c]=A.join(""))for(A=[a=b=w=0],x=y=X=40;b<160;A[y?a++:(I=(c+b)*b*49999-5537&65535)%78+I%38*81+[1,81,82,83,163][j]]="|-*-|\n_%"[y?x+X?x*x--<w*w|6:(x=X,w+=--y%8?1:-3,y?5:8):j--||(b++,j=4)]);return C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment