Skip to content

Commit

Permalink
remove some debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
cid0rz committed Jun 11, 2022
1 parent c321dcb commit 6faa20c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/components/games/tetris.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,13 @@ def clear_lines(self):

all_squares = self.board.find_all()
all_squares_h = {k : v for k,v in zip(all_squares, [self.board.coords(sq)[3] for sq in all_squares])}
print(all_squares)
print(all_squares_h)
count = Counter()
for sq in all_squares_h.values(): count[sq] += 1
full_lines = [k for k,v in count.items() if v == Tetris.WIDTH/SIDE]
print(full_lines)


if full_lines:
print("clearing lines", full_lines)
#print("clearing lines", full_lines)
lines = len(full_lines)
remaining_squares_h = {}
for k,v in all_squares_h.items():
Expand All @@ -103,7 +101,6 @@ def clear_lines(self):

self.lines_cleared.append(lines)
self.total_lines += lines
print(self.lines_cleared, self.total_lines)

def handle_events(self, event):
'''Handle all user events.'''
Expand Down

0 comments on commit 6faa20c

Please sign in to comment.