Skip to content

Instantly share code, notes, and snippets.

@tyage
Created September 25, 2011 13:52
Show Gist options
  • Save tyage/1240617 to your computer and use it in GitHub Desktop.
Save tyage/1240617 to your computer and use it in GitHub Desktop.
golf(console)
//consoleで動かすgolf
//r() でgolf実行
c=n=0;function r(){if(n>0){g=[];g[++c]=".";g[6]="_";console.log(g.join("-"));r(n--)}else{c>=6&&console.log(c-6);n=Math.random()*6}}r()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment