generated from mwc/project_game
Started developing a retro version of Tetris, following the planning on the board of the classroom (see planning.jpg). Moved cursor work into cursor.
11 lines
264 B
Python
11 lines
264 B
Python
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
|