Dice Game Examples

example game 1

$ python3 dice.py
Welcome to the dice game!

What is the target value?
Please enter a value between 7 and 21: 10

Player 1's turn
Your score is 0; your opponent's score is 0; the target is 10
Would you like to roll (y/n)? y
You rolled 4
Your score is now 4

Player 2's turn
Your score is 0; your opponent's score is 4; the target is 10
Would you like to roll (y/n)? y
You rolled 2
Your score is now 2

Player 1's turn
Your score is 4; your opponent's score is 2; the target is 10
Would you like to roll (y/n)? y
You rolled 3
Your score is now 7

Player 2's turn
Your score is 2; your opponent's score is 7; the target is 10
Would you like to roll (y/n)? y
You rolled 5
Your score is now 7

Player 1's turn
Your score is 7; your opponent's score is 7; the target is 10
Would you like to roll (y/n)? y
You rolled 4
Your score is now 11

Player 1 exceeded the target!
Player 2 wins!

Would you like to play again (y/n)? y

What is the target value?
Please enter a value between 7 and 21: 12

Player 1's turn
Your score is 0; your opponent's score is 0; the target is 12
Would you like to roll (y/n)? y
You rolled 5
Your score is now 5

Player 2's turn
Your score is 0; your opponent's score is 5; the target is 12
Would you like to roll (y/n)? y
You rolled 6
Your score is now 6

Player 1's turn
Your score is 5; your opponent's score is 6; the target is 12
Would you like to roll (y/n)? y
You rolled 4
Your score is now 9

Player 2's turn
Your score is 6; your opponent's score is 9; the target is 12
Would you like to roll (y/n)? y
You rolled 1
Your score is now 7

Player 1's turn
Your score is 9; your opponent's score is 7; the target is 12
Would you like to roll (y/n)? n
Your score is now 9

Player 2's turn
Your score is 7; your opponent's score is 9; the target is 12
Would you like to roll (y/n)? y
You rolled 5
Your score is now 12

Player 1's turn
Your score is 9; your opponent's score is 12; the target is 12
Would you like to roll (y/n)? y
You rolled 3
Your score is now 12

Player 2's turn
Your score is 12; your opponent's score is 12; the target is 12
Would you like to roll (y/n)? n
Your score is now 12

Game over!
It's a draw!

Would you like to play again (y/n)? n

Good bye!