mirror of
https://github.com/correl/euler.git
synced 2024-11-24 03:00:08 +00:00
Updated euler app to use regular comparisons
git-svn-id: file:///srv/svn/euler@10 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
This commit is contained in:
parent
b882ba3c8d
commit
e74a588d8f
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ if __name__ == '__main__':
|
||||||
cards = line.strip().split()
|
cards = line.strip().split()
|
||||||
one = poker.Hand(cards[:5])
|
one = poker.Hand(cards[:5])
|
||||||
two = poker.Hand(cards[-5:])
|
two = poker.Hand(cards[-5:])
|
||||||
result = poker.Hand.compare(one, two)
|
result = cmp(one, two)
|
||||||
if result > 0:
|
if result > 0:
|
||||||
wins = wins + 1
|
wins = wins + 1
|
||||||
outcome = 'Player One wins'
|
outcome = 'Player One wins'
|
||||||
|
|
Loading…
Reference in a new issue