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:
Correl Roush 2010-03-31 20:18:14 +00:00
parent b882ba3c8d
commit e74a588d8f

View file

@ -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'