I need to recreate a dice game between the computer and the user. Two players take turns; on each turn, a player rolls a six-sided die ("die" is the singular of "dice") as many times as she wishes, or until she rolls a 6. Each number she rolls, except a 6, is added to her score this turn; but if she rolls a 6, her score for this turn is zero, and her turn ends. At the end of each turn, the score for that turn is added to the player's total score. The first player to reach or exceed 50 wins.
Hello!
This code can be done quickly with Python,
using random numbers for generating
each result. A text interface can be done
if you only need each user to roll the die
each time they press enter, for example.
I would like to start a chat in order to discuss
the details of this work.