944,118 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 439
  • C RSS
Nov 2nd, 2009
0

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

Expand 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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Wtyy is offline Offline
5 posts
since Oct 2009
Nov 2nd, 2009
0
Re: How to do "narrow the range" in a guessing game?
Click to Expand / Collapse  Quote originally posted by Wtyy ...
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.
Reputation Points: 182
Solved Threads: 72
Posting Pro in Training
gusano79 is offline Offline
476 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: C Modulus
Next Thread in C Forum Timeline: Please help - how to quit a program





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC