Example App

Used to show off how cool updoc is.

Guesser module

The main application

.guess( value )

  • return true or false
Guess what the secret value is

SECRET

Can't guess this from outside the module. Is a value from 1 to 10

Util Module

Back door debugging stuff

Cheating

For development only!

.cheat( )

  • return a number 1-10
Cheat and learn the secret value

Math

Useful math utilities

.numBetween( x, y )

  • return number
Create random number between x and y