Share |

Friday, April 9, 2010

Number Guessing Game

In this simple game, your computer does all the work. You only have to press one of the buttons, "Yes" or "No". This is how you play. At the beginning (or after pressing "Reset"), you think of a positive integer less than 100. At any time, the computer will display a set of numbers. In response, press either "Yes" or "No" depending on whether your number is on the screen or not. After a while the computer will guess your number. See for yourself.

No comments:

Post a Comment