generated from mwc/project_game
Add tetris example
This commit is contained in:
10
tetris/block.py
Normal file
10
tetris/block.py
Normal 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
|
||||
Reference in New Issue
Block a user