node package manager

guess

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

JavaScript/NodeJS Guess v1.0.2

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

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

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