guess

It's an numbers guessing algorithm within a range, compatible with JavaScript and NodeJS.

JavaScript/NodeJS Guess v1.0.0

It's an numbers guessing algorithm within a range, compatible with JavaScript and NodeJS.

http://jsfiddle.net/yeikos/jNzax/

<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>