I am making a dice game, when the player roles an even number, the score is increased by 10. However if the number is odd your score is decreased by 5. If the user roles doubles the are allowed to roll an additional dice - the other statements apply to the total score of 3 dice. My if statements are not running. I have tried to change the numbers in the list to strings, it does not work.
def Player_1_Roll():
global Player_1_Score
Player_1_Score = 0
Player_1_Roll_1 = random.randint(1, 6)
print(Player_1_Name, "'s first roll is", Player_1_Roll_1)
time.sleep(1)
Player_1_Roll_2 = random.randint(1, 6)
print(Player_1_Name, "'s second roll is", Player_1_Roll_2)
Player_1_Score = Player_1_Roll_1 + Player_1_Roll_2
if Player_1_Score == [2, 4, 6, 8, 10, 12, 14, 16, 18]:
Player_1_Score = Player_1_Score + 10
print(Player_1_Name, "'s Score is", Player_1_Score)
elif Player_1_Score == [1, 3, 5, 7, 9, 11, 13, 15, 17]:
Player_1_Score = Player_1_Score - 5
print(Player_1_Name, "'s Score is", Player_1_Score)
elif Player_1_Score < 0:
Player_1_Score = 0
print(Player_1_Name, "'s Score is", Player_1_Score)
elif Player_1_Roll_1 == Player_1_Roll_2:
print("")
print(Player_1_Name, "rolled doubles!")
print("")
Player_1_Roll_3 = random.randint(1, 6)
print(Player_1_Name, "'s bonus roll is", Player_1_Roll_3)
Player_1_Score = Player_1_Score + Player_1_Roll_3 + Player_1_Roll_1 + Player_1_Roll_2
print(Player_1_Name, "'s Score is", Player_1_Score)