1.0.2 • Published 12 years ago
guess v1.0.2
JavaScript/NodeJS Guess v1.0.0
What is this?
It's an numbers guessing algorithm within a range, compatible with JavaScript and NodeJS.
Demo online
http://jsfiddle.net/yeikos/jNzax/
Example
<html>
<head>
<script type="text/javascript" src="https://raw.github.com/yeikos/js.guess/master/guess.js"></script>
<script type="text/javascript">
guess(0, 255, function(y, callback, ready) {
if (ready)
return alert('Number is ' + y);
callback(confirm('X > ' + y));
});
</script>
</head>
<body></body>
</html>