Yahtzee in Matlab?
이전 댓글 표시
Im trying to make the game yahtzee in matlab. Im setting up an array with 0's and 1's in it, and the 1's will be the dice that I want to reroll. I havent had to much trouble, but I cant figure out how to incorporate the reroll aspect into it. Im using an if statement to generate new random numbers if theres a 1 in the array. If theres a zero then there will be no need to reroll those dice in that position. Could anyone offer some help for the reroll process. Much appreciated.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Word games에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!