Skip to content

Instantly share code, notes, and snippets.

@bruslim
Created March 6, 2017 03:12
Show Gist options
  • Save bruslim/0ea7cc1efc1143a46ff229588f59de13 to your computer and use it in GitHub Desktop.
Save bruslim/0ea7cc1efc1143a46ff229588f59de13 to your computer and use it in GitHub Desktop.
High Low
<!DOCTYPE html>
<html>
<head>
<title>Number Guesser</title>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
</head>
<body>
<h1>Guess the number!</h1>
<p><input id="guess"/></p>
<p><button id="submit">Guess!</button></p>
<ul id="messages"></ul>
<script>
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('6 1=7.i(j*7.k());$(8(){$("#h").g(8(){6 e=$("#d")[0],t=m(e.5),n=$("#l");n.u(1>t?$("<3>").2("b 1 "+t+" 4 9 s."):t>1?$("<3>").2("b 1 "+t+" 4 9 o."):t===1?$("<3>").2("p f q! r 1 4 "+1+"."):$("<3>").2(e.5+" 4 c a 1.")),e.5=""})});',31,31,'|number|text|li|is|value|var|Math|function|too||The|not|guess||got|click|submit|floor|100|random|messages|parseInt||high|You|it|the|low||append'.split('|'),0,{}))
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment