Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
It's an numbers guessing algorithm within a range, compatible with JavaScript and NodeJS (http://search.npmjs.org/#/guess).
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
LICENSE
README.md
guess.js
guess.min.js
package.json

README.md

JavaScript/NodeJS Guess v1.0.2

What is this?

It's an numbers guessing algorithm within a range, compatible with JavaScript and NodeJS (http://search.npmjs.org/#/guess).

Demo online

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

Example

<!doctype html><html>

    <head>

        <script src="http://files.yeikos.com/guess.js"></script>

        <script>

            guess(0, 255, function(num, query) {

                query(confirm('x > ' + num));

            }, function(num) {

                document.write('Number is ' + num);

            });

        </script>

    </head>

    <body></body>

</html>
Something went wrong with that request. Please try again.