We created a Simple Dice Game (also known as High Low) and another dice game called Tenzi on Matlab. We decided to make these games because they match our level of confidence with Matlab and we thought they were fun. To play the simple dice game, you simply guess what number the die was rolled on until you guess correctly. We were able to use if/else statements on Matlab to make this work. To play Tenzi, you pick a number between 1 and 6. The die that match the chosen number out of the ten rolled dice are put to the side. The remaining die are rolled until they land on the number chosen in the beginning, being put to the side if they do. This is continued until all die land on that number. The goal of the game is to get all the die to land on the chosen number in the least amount of rolls. We tried to use while loops on Tenzi but ended up being about to use if/else statements.
We enjoyed creating the games and we hope you enjoy playing them!