Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loop:
- coins = self.findItems()
- coinIndex = 0
- while coinIndex < len(coins):
- coin = coins[coinIndex]
- if coin.value == 3:
- pos = coin.pos
- x = pos.x
- y = pos.y
- self.moveXY(x, y)
- coinIndex += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement