I have an assignment where I am supposed to . . .

1. Create a class called HiLoGame. This class will just be the driver class to get the game started. It should have the main method and then just create the HiLoGameEngine object and then invoke the method you create in the HiLoGameEngine object to begin playing the game. That is all this class will need to do.

2. Create a class HiLoGameEngine. This class will implement all the functionality of the game. This class will need to display the information about the game, prompt the user for the low and high-end of the range to guess from, generate the random number for the user to guess, prompt the user to enter a guess, see if the guess is too high, too low, or correct, keep track of the number of guesses, ask the user if s/he wants to play again, etc.

I've done most of the latter, but I can't figure out how to do the first part to run my code to see what else, if anything I need to do. I've searched online, and have found this:

public class HiLoGame
{

/**
* @param args
*/
public void main(String[] args)

{
HiLoGame game = new HiLoGame();
game.startGame();
}

}

It doesn't seem to work through. If someone can explain to me what the game.startGame does and how to use it to call the HiLoGameEngine class, it would be greatly appreciated.