How to do "narrow the range" in a guessing game?

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2009
Posts: 5
Reputation: Wtyy is an unknown quantity at this point 
Solved Threads: 0
Wtyy Wtyy is offline Offline
Newbie Poster

How to do "narrow the range" in a guessing game?

 
0
  #1
32 Days Ago
I am writing a number guessing game, but it request to give hints to player when he guess wrong. And I need to narrow the range to be the hints, what should I write to do this function?
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 85
Reputation: gusano79 is on a distinguished road 
Solved Threads: 5
gusano79 gusano79 is offline Offline
Junior Poster in Training
 
0
  #2
32 Days Ago
Originally Posted by Wtyy View Post
I am writing a number guessing game, but it request to give hints to player when he guess wrong. And I need to narrow the range to be the hints, what should I write to do this function?
The simplest hint that actually narrows the range is to tell the user "too high" or "too low" for wrong guesses.
--smg
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC