/*
* A fiendish guessing game...
*/
import java.awt.*;
class CS5App
{
public static void main(String[] args)
{
long myNumber = H.randLong(0,9000000000000000000L);
while ( true )
{
H.pl("\n\nI'm thinking of a positive integer");
H.pl("If you guess it, you may leave.");
H.pl("Otherwise, you must continue... \n");
H.p("What is your guess? ");
int yourGuess = H.ni();
if ( yourGuess == myNumber )
{
break; // let me out !
}
/*
H.p("\n\nWould you like to continue playing? ");
String answer = H.nl();
if ( answer == "no" )
{
break;
}
*/
}
} // end main
}