I am making this Rock Paper Scissors game based on just image buttons to resemble rock paper scissors.
But now i want to assign a button to be "Rock" from my list. How would i do that? code:
#Options
def Game():
choice = ["Rock", "Paper", "Scissors"]
RockButton = choice[0]
PaperButton = choice[1]
ScissorsButton = choice[2]
#Naming the images
RockButton = Button(root, image = rock, bg="white", bd=0,command=Game).pack(side = LEFT)
PaperButton = Button(root, image = paper, bg="white", bd=0,command=Game).pack(side = RIGHT)
ScissorsButton = Button(root, image = scissors, bg="white", bd=0, command=Game).pack(pady=10)