Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game.py
diff options
context:
space:
mode:
Diffstat (limited to 'game.py')
-rw-r--r--game.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/game.py b/game.py
index 8569d25..be85739 100644
--- a/game.py
+++ b/game.py
@@ -126,7 +126,7 @@ class Game():
self.deck.hide()
self.deck.shuffle()
self.grid.deal(self.deck)
- if self._find_a_match() is False:
+ if not self._find_a_match():
self.grid.deal_extra_cards(self.deck)
self.matches = 0
self.robot_matches = 0
@@ -149,8 +149,7 @@ class Game():
def _sharing(self):
""" Are we sharing? """
- if self.sugar is True and \
- hasattr(self.activity, 'chattube') and \
+ if self.sugar and hasattr(self.activity, 'chattube') and \
self.activity.chattube is not None:
return True
return False