stop giving a single player with 0 points credit for a 'win'

This commit is contained in:
Ben Schomp 2012-05-18 13:37:51 -04:00
parent 5ab9ee8163
commit 158debccb7
1 changed files with 2 additions and 3 deletions

View File

@ -686,13 +686,12 @@ class Worddle(BaseGame):
player_results[1].get_score() == high_score
for result in player_results:
score = result.get_score()
verb = "got"
if score == high_score:
if tie:
verb = "%stied%s with" % (LYELLOW, LGRAY)
else:
elif high_score > 0:
verb = "%swins%s with" % (LGREEN, LGRAY)
else:
verb = "got"
words_text = result.render_words(longest_len=self.longest_len)
self._broadcast('result', [self.channel], nick=result.player,
verb=verb, points=score, words=words_text)