CHALLENGES


  1. Modify the Guess a Number game by providing better clues as the player's guesses begin to get closer to the secret number. For example, you might add text that tells the player when he is getting "warm," "warmer," and "hot."

  2. Add logic to the game to display the average number of guesses that it takes the player to guess the secret number, and display this information in the grpScore control (GroupBox).

  3. Modify the Guess a Number game so that the game ends if the player has not guessed the secret number after a certain number of tries, and display the number of games lost in the grpScore control (GroupBox). Also, display the secret number in the txtOutput control (TextBox) when the player loses a game.




Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
ISBN: 735615381
EAN: N/A
Year: 2005
Pages: 131

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net