Making a game in MATLAB?
Mostrar comentarios más antiguos
Im trying to make yahtzee in matlab, and I understand how to do most of it. Im really struggling on the code for the rerolls. For instance if I roll once, and I want to keep dice 2 and 4, then how would I reroll only dice 1,3, and 5. I was thinking about using an array of 0's and 1's that would determine which dice I want to keep. True=0 and False=1. Appreciate any help, Thanks.
1 comentario
jgg
el 22 de En. de 2016
I think you'll have to give us some more information. What does your code look like? Your approach seems sensible; control your re-rolls with an indicator but without more information I don't know how we can help.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Word games en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!