File Exchange

image thumbnail

Mastermind 7

version (17.1 KB) by dave segala
A game of logic and thinking.


Updated 18 Feb 2005

No License

The computer generates 4 out of 7 colors randomly. The user has to find what 4 colors were picked by clues and guesses. Since the computer generates the 4 colors, it is possible for the computer to pick two, three, or four of the same colors

Cite As

dave segala (2021). Mastermind 7 (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Michal Dobrzynski

Hmmm... the game is sometimes cheating:(

Nick Cheilakos

I have the same problem.

Jesus Emantsal

I found a impossible combination too.
I need two yellow, one white, one black and one blue to complete my sequence.

Joe Lastname

I agree with Thomas, 3 black and 1 white is impossible. Also, it is annoying to have to click through all the colors, maybe a dropdown menu or something.

Thomas Lastname

How can I have 4 right colors and three of them at the right position? Perhaps I do not understand the rules, but in my opinion 3 black pegs and 1 white peg should be an impossible combination.

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!