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.
If you’ve seen my last project (Roulette), that was a 3000 line abomination, while this one is under 700. Creating the definition of roll() definitely saved me over 1500 lines of codes, seeing as I would have to write it out 19 whole times
. I would also like to stress another point of this project, which is that despite using A.I to learn some new things, this is NOT vibecoded, and not A.I slop. I know that some people will look at my declaration and flame me. I want to defend myself that I used A.I to learn. I could’ve just as easily and went on some website to learn what I wanted to do, but A.I was more convenient. I also know what the text actually means. It wasn’t just a straight copy+paste, I spend some time actually caring and figuring out what the commands meant, so that I can use them in the future. That being said, this is a nice little project, 4.5 hours isn’t that much, but it’s ok. I pray you guys give me good votes
. Last time I got average votes and got absolutely slammed with a diabolically low payot
, so hopefully this time it’s different. I have progressed in my coding skills, and at the end of the day, that’s what probably matters the most.
. 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! 