import random def initial_points(which_player): """Roll dice twice and return total / if double points apply""" double = "no" # Roll the dice for the user and note if they got a double initial_user = initial_points("User") if roll_one == roll_two: double = "yes" total = roll_one + roll_two print(f"{which_player} - Roll 1: {roll_one} \t| Roll 2: {roll_two} \t| Total: {total} ") return total, double # Initialise rounds points user_points = 0 comp_points = 0 # Roll the dice for the user and note if they got a double initial_user = initial_points("User") initial_comp = initial_points("Comp") print("Initial User", initial_user) print("Initial Computer", initial_comp) # Let the user know if they qualify for double points # if double_user == "yes": # print("Great news - if you win, you will earn double points!")