Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def whichButton(button):
- buttonList = game.playerList[game.turn].buttons
- for x in range(len(buttonList)):
- if button in buttonList[x]:
- index = buttonList[x].index(button)
- return index, x
Advertisement
Add Comment
Please, Sign In to add comment