A text-based game of Yahtzee written entirely in python. Contains 3 rounds, with the first being one round of rolling to attempt a Yahtzee. The second round contains 13 rounds of rolling, with standard rules. The third round consists of 5 rounds o…
A text-based game of Yahtzee written entirely in python. Contains 3 rounds, with the first being one round of rolling to attempt a Yahtzee. The second round contains 13 rounds of rolling, with standard rules. The third round consists of 5 rounds of rolling, where you can only get yahtzees.
Used chatgpt to debug, as well as learn new commands on what to do in an array, such as sorting, counting the number of each value, excluding values when looking for 4 in a row.
. I added the 3rd round of rolling, which is 5 attempts to get yahtzees, then I polished it up real quick, made it as easy of the eyes as can be (especially for a text based game). However, we are done with this, kinda surreal to have started this and finished this all in one day, would call it a successful day in my books.
Anyways, I had some issues with unresolved references, in which I had no clue what was going on, so I went to ChatGPT to help me figure it out and basically I needed to return the values from the def roll(), and also save them as variables outside of the def roll(), so I learned something new today! 