Skip to content

Commit

Permalink
Update divisor-game.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Apr 14, 2019
1 parent 09fb8a2 commit 0a860bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Python/divisor-game.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ def divisorGame(self, N):
# 2. if Bob gets an odd, he can only choose x = 1 or other odds
# and Alice can still get an even
# 3. at the end, Bob can only choose x = 1 and Alice wins
# 4. in summary, Alice wins if only if she gets even
# 4. in summary, Alice wins if only if she gets an even and
# keeps even until Bob loses
return N % 2 == 0

0 comments on commit 0a860bd

Please sign in to comment.