Yahtzee
I have only limited experience and knowledge of MATLAB, so everything is pretty basic, but it seems to work just fine!
Notes:
* "Dice" to-be-saved must be input either comma- or space-delimited (e.g. if your hand is 43444 and you want to save the 4's, type either 1 3 4 5 or 1,3,4,5 into the command prompt and hit Enter).
* The "all" feature skips to the end of the turn and lets you choose your category
* The sorted feature is a helpful add-on to see if you have a run or a straight.
Please let me know what you think, and I am open to any suggestions and/or bug fixes.
Enjoy!
PS This would be a cool Easter Egg wouldn't it? (hint... hint...)
Citar como
Colin (2024). Yahtzee (https://www.mathworks.com/matlabcentral/fileexchange/27782-yahtzee), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Gaming > Number games >
Etiquetas
Agradecimientos
Inspiración para: Text Yahtzee
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.