File Exchange

image thumbnail


version (2.21 KB) by Antonio Trujillo-Ortiz
Guess my Number.


Updated 18 Apr 2006

View License

This m-file performs the game of Guess my Number. You can select one from five levels of game. Then you should input your guess number until you can find it. At the end you will receive the performance level to guess.

Cite As

Antonio Trujillo-Ortiz (2021). guessmynumber (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Alberto Clara

Mia Ginsburg

It does work, but its not terribly interesting as games go.

Reinhard Fraecker

The program is rather primitive and the assessment of the number of guesses needed to solve the problem is inadequate (You would expect a log2(N) (binary search) number of guesses about optimal, less guesses are plain luck)

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!