aboutsummaryrefslogtreecommitdiff
path: root/turtetris_master/state_machine.py
diff options
context:
space:
mode:
Diffstat (limited to 'turtetris_master/state_machine.py')
-rw-r--r--turtetris_master/state_machine.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/turtetris_master/state_machine.py b/turtetris_master/state_machine.py
index 3c07acb..7cbfcaa 100644
--- a/turtetris_master/state_machine.py
+++ b/turtetris_master/state_machine.py
@@ -36,6 +36,14 @@ class StateMachine:
if self.state != "game":
__exception__()
self.matrix.fill('red')
+ i = self.matrix.height - 2
+ # Show score
+ for _ in range(int(self.game.score / 5)):
+ for s in range(5):
+ self.matrix.pixel(s + 3, i, 'green')
+ i -= 1
+ for s in range(self.game.score % 5):
+ self.matrix.pixel(s + 3, i, 'green')
self.matrix.display()
else:
__exception__()