Just try to guess the number. Once you have guest more than 8 times you lose.
Well I knew how to do it in HTML and played it and decided it was fun.