hi can you tell me the anatomy of game in which the player picks a number and the computer must guess what it is.
no code just give me a hint or two :D
manzoor
2
Junior Poster in Training
Recommended Answers
Jump to PostEdward learned it like this:
- Player picks a number between X and Y
- Computer guesses half way between X and Y
- Player says higher or lower
- Computer sets X to the guessed number if player says higher, or Y to the guessed number of player says lower
- Computer guesses …
Jump to PostExactly like how binary search works. Ed learned this game as a prelude to more general binary searching.
All 5 Replies
Radical Edward
301
Posting Pro
Blondeamon
0
Newbie Poster
Radical Edward
301
Posting Pro
manzoor
2
Junior Poster in Training
VernonDozier
commented:
I've wondered that myself.
+2
Radical Edward
301
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.