Add tetris example

This commit is contained in:
Chris Proctor
2026-01-07 09:46:26 -05:00
parent 298a5fc58c
commit d6adfef5a1
8 changed files with 280 additions and 0 deletions

10
tetris/block.py Normal file
View File

@@ -0,0 +1,10 @@
class Block:
"""A Block represents a single square on the Tetris board.
Blocks are part of a Piece while they are 'alive'.
"""
character = "X"
color = "blue"
alive = True
def __init__(self, position):
self.position = position