File Exchange

image thumbnail

guessmynumber

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

2 Downloads

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 (https://www.mathworks.com/matlabcentral/fileexchange/10450-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
Categories

Community Treasure Hunt

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

Start Hunting!