How to make code count boxes?

I am trying to recreate Deal or No Deal on Matlab. I have scrambled the cases so the values of the boxes will be different, however I am trying to make it so at the start of the game when you click a box this becomes 'your box'. Then the rest of the game plays out as normal.
I am struggling to make the code realize that once 'your box' has been picked, it should play the game out as normal. Can anyone help with this?
I have attatched relevant bits of code.
Thanks for your help

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Just for fun 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by