Cs project
Cs project
dice_faces = [1, 2, 3, 4, 5, 6]
while True:
# Simulate a dice roll by randomly selecting a number from the dice faces
# Simulate the dice roll (choosing a random number from the list)
roll_result = dice_faces[user_choice - 1]
# Display the result of the dice roll
play_again = input("\nDo you want to roll the dice again? (y/n): ")
if play_again.lower() != 'y':