Basically in my code I have a bit where you have to click 1 then enter then 2 then enter and I want to make it so when I press 1 I don't have to click the enter button. So all I have to do is press 1 and then it will roll the dice.
I have done a quick research and can't seem to find how to / what to type in on the internet (if there is a specific thing I need to write)
def Game_Round1():
while player1_dice1_round1_dice != "1":
player1_dice1_round1_dice = input("Press 1 to roll dice!: ")
else:
player1_dice1_round1_answer = random.randint(1, 6)
print("You rolled the first dice and the answer is: ", player1_dice1_round1_answer)
player1_dice2_round1_roll_start = input("Press 2 to roll dice 2: ")
while player1_dice2_round1_roll_start != "2":
player1_dice2_round1_roll_start = input("Press 2 to roll dice2!: ")
else:
player1_dice2_round1_answer = random.randint(1, 6)
print("You rolled the second dice and the answer is: ", player1_dice2_round1_answer)
p1_round1_answer = (player1_dice1_round1_answer + player1_dice2_round1_answer)
odd_or_even_checker = p1_round1_answer % 2
if odd_or_even_checker > 0:
print("as your number is even you will loose 5 points ")
p1_round1_answer -= 5
else:
print("as your number is even you will gain an extra 10 points ")
p1_round1_answer += 10