Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-04-01 01:52:24 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-04-01 01:52:24 (GMT)
commit67bf80e7fa37c270fc2149f915b23267ff1da6cc (patch)
treeb490d60ff8dfc81a8296b993fdcc386ba5664efe /game.py
parentb99e9930e4f36e99d912c429fad7dbb80f851789 (diff)
add tile value to scoring
Diffstat (limited to 'game.py')
-rw-r--r--game.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/game.py b/game.py
index f0e600c..46e615f 100644
--- a/game.py
+++ b/game.py
@@ -546,7 +546,7 @@ class Game():
if not break_in_path[p] and len(self._paths[p]) > 0:
for i in self._paths[p]:
self.grid.grid[i[0]].set_shape(i[1])
- self.score += len(self._paths[p])
+ self.score += self.grid.grid[i[0]].get_value()
def _tile_to_test(self, test_path):
''' Find a tile that needs testing. '''