Skip to content

Instantly share code, notes, and snippets.

@tyage
Created September 25, 2011 11:59
Show Gist options
  • Save tyage/1240537 to your computer and use it in GitHub Desktop.
Save tyage/1240537 to your computer and use it in GitHub Desktop.
golf(lite)
//クリックで操作
//タイトルバーに表示
//初期化にワンクリック必要
//結果はゴールまでのマス数
c=n=0,onclick=function r(){n-->0?(g=[],g[6]="_",g[++c]="*",document.title=g.join("-"),setTimeout(r,300)):(n=Math.random()*6,c>5&&alert(c-6))}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment