Mastermind!

Crack the code!

Vous suivez désormais cette soumission

Matlab implementation of the 'Mastermind (R)' board game

mastermind([number of colors],...
[number of columns],...
[number of rows])

default values: mastermind(6,4,10)

Click on pegs on the right to choose the color.
Click on the empty peg boxes to place a peg
(keep clicking to cycle through colors).
Click on 'GO' to get results for that row.

White indicates correct color, but not correct location
Black indicates correct color in the correct location

Note: you can cheat by clicking on the boxes in the top row to reveal the hidden pegs.

Citation pour cette source

Geoff Boynton (2026). Mastermind! (https://fr.mathworks.com/matlabcentral/fileexchange/11798-mastermind), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

A inspiré : Mastermind

Catégories

En savoir plus sur Strategy & Logic dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0

User no longer needs to select a color at beginning of game.