Skip to content
Sign upLog in
← Back to Community

How do I make a player "win"?

Profile icon
AlexanderLuna

My script so far:

import random
print ("(Player 1's choice is the top one and player 2's is the bottom.)")
#makes name
player_1_pick = ""
player_2_pick = ""
player_1 = input("Enter a name for player 1.")
player_2 = input("Enter a name for player 2.")

if (player_1 == "" or player_2 == ""):
if (player_1 == ""):
player_1 = "Player 1"
if (player_2 == ""):
player_2 = "Player 2"
#chooses choice
def rps():
decider1 = ["rock", "paper", "scissors"]
print(random.choice(decider1))

decider2 = ["rock", "paper", "scissors"]
print(random.choice(decider2))
#runs choice script
rps()

Voters
Profile icon
AlexanderLuna