Two-player dice game for NEA task computer science (Updated)
2
2
This is a game for two users who roll 2 dice 5 times. If the total of dice is even the player gains 10 points; if it is odd, they lose 5. If there is a draw after five rounds then both users will have to roll one die to determine the winner. Some updates that I have done to this code include adding functions to it so that it reduces the size of the code, removing repeated code, acting upon the suggestions that were given to me on my old code, and trying to improve my DRY (don't repeat yourself) skills. I just want suggestions on how I could improve this updated code. import time import sys import random import operator total_score2 = 0 total_score1 = 0 rounds = 0 playerOnePoints = 0 playerTwoPoints = 0 counter = 0 print("*****************Welcome To The DICE Game*******************") ...