Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PasswordBot:
- def __init__(self, round=0):
- self.turn = 0
- self.nice = True
- def move(self, previous=None):
- self.turn+=1
- if self.turn <= 3 and previous == 3:
- self.nice = False
- if self.turn >= 3 and self.nice:
- if self.nice:
- return 2
- else:
- return previous
- else:
- return 3
Advertisement
Add Comment
Please, Sign In to add comment