Skip to content

Commit

Permalink
removing none class
Browse files Browse the repository at this point in the history
  • Loading branch information
namannarula committed May 23, 2021
1 parent 41fa54b commit 1a6e176
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions game.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
0: "rock",
1: "paper",
2: "scissors",
3: "none"
}


Expand Down Expand Up @@ -71,9 +70,6 @@ def calculate_winner(move1, move2):
if user_move_name != "none":
computer_move_name = choice(['rock', 'paper', 'scissors'])
winner = calculate_winner(user_move_name, computer_move_name)
else:
computer_move_name = "none"
winner = "Waiting..."
prev_move = user_move_name

# display the information
Expand Down

0 comments on commit 1a6e176

Please sign in to comment.