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

Edward learned it like this:

  1. Player picks a number between X and Y
  2. Computer guesses half way between X and Y
  3. Player says higher or lower
  4. Computer sets X to the guessed number if player says higher, or Y to the guessed number of player says lower
  5. Computer guesses half way between X and Y
  6. Repeat until the number is found or the computer runs out of tries

Have fun! :)

Kinda like Binary search works.

Exactly like how binary search works. Ed learned this game as a prelude to more general binary searching.

edward is greaat btw who is he ? :D

commented: I've wondered that myself. +2

> edward is greaat
Ed rules! :D

> btw who is he ?
Edward is Edward, who else would Edward be? :confused:

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.