summaryrefslogtreecommitdiff
path: root/cameltris/piece.py
diff options
context:
space:
mode:
Diffstat (limited to 'cameltris/piece.py')
-rw-r--r--cameltris/piece.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cameltris/piece.py b/cameltris/piece.py
index d8e7b63..3636fbd 100644
--- a/cameltris/piece.py
+++ b/cameltris/piece.py
@@ -1,8 +1,11 @@
""" Module that defines all types of pieces """
+from typing import Optional
+
import pygame
from .color import Color
+from .coordinates import Coordinates
square_template = pygame.Surface((48, 48))
@@ -12,6 +15,7 @@ class Piece:
""" A piece class that provides default methods for performing rotations """
def __init__(self):
""" Initialize a piece """
+ self.coord: Optional[Coordinates] = None
self.square = square_template.copy()
def rotate_clockwise(self):