Skip to content

Instantly share code, notes, and snippets.

@aki017
Created May 3, 2013 00:51
Show Gist options
  • Save aki017/5506527 to your computer and use it in GitHub Desktop.
Save aki017/5506527 to your computer and use it in GitHub Desktop.
多分これが一番早いと思います
// spidermonkey
abs = function (x){ return (x ^ (x >> 31)) - (x >> 31);}
repeat = function (s,n){ return new Array(++n).join(s);}
var w = 20
for(var i = 0;i<=100;i+=2)
{
for(var j = 0;j<w*2;++j)
{
print("呉x"+i);
var a = repeat(" ",abs(j-w));
var b = repeat(" ",w-abs(j-w));
for(var k = 0;k<w/4;k++)
{
if(k==~~(abs(j-w)/4)){
print(repeat(" ",w)+"呉");
}else{
print();
}
}
print(a+"⊖"+b+b+"⊖");
sleep(1/60);
}
}
@aki017
Copy link
Author

aki017 commented May 3, 2013

[http://upload.aki017.info/raw/2013-05-03-095221.gif]
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment