Blackjack: I want to know how to get new cards and keep the old ones every time I hit the HIT button
3 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I was trying to make a simple blackjack gui that only utilize stand and hit option. One of my problem was whenever i click the hit button, new card replaces the old one and the old values gets erase from the total points. I heard that using set(handles.) works in this situation, but I can't seem to understand its functionality within the code. if you have any other suggestions, can you please post them down below?
Below are the current state of the game. It was pretty simple since it's my first time using the app designer.
Thanks in advance
0 件のコメント
回答 (1 件)
David Hill
2020 年 11 月 29 日
You could look at other people's Blackjack code. Here is one that I wrote:
https://www.mathworks.com/matlabcentral/fileexchange/71349-blackjack-gui
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!