We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8062ddb commit ad6187cCopy full SHA for ad6187c
days/13-15-text-games/rock_scissors_paper/rps.py
@@ -9,6 +9,9 @@ def __init__(self, roll_name=''):
9
self.roll_name = roll_name.lower()
10
11
def win(self):
12
+ """
13
+ :return: string of the roll defeated by a given key. i.e rock defeats scissors, so we return scissors for key = rock
14
15
d = dict(rock='scissors', scissors='paper', paper='rock')
16
return d[self.roll_name]
17
0 commit comments