Mastermind!

版本 1.0.0.0 (2.7 KB) 作者: Geoff Boynton
Crack the code!
3.4K 次下载
更新时间 2006/7/28

无许可证

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.

引用格式

Geoff Boynton (2024). Mastermind! (https://www.mathworks.com/matlabcentral/fileexchange/11798-mastermind), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Strategy & Logic 的更多信息
致谢

启发作品: Mastermind

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

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