diff options
Diffstat (limited to 'cameltris/piece.py')
-rw-r--r-- | cameltris/piece.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cameltris/piece.py b/cameltris/piece.py index 3636fbd..33adc37 100644 --- a/cameltris/piece.py +++ b/cameltris/piece.py @@ -33,7 +33,7 @@ class ZPiece(Piece): def __init__(self): super().__init__() - self.square.fill(Color.blue.value) + self.square.fill(Color.BLUE.value) self.elements = (self.square, self.square, None), (None, self.square, self.square), (None, None, None) self.vertical = False @@ -56,7 +56,7 @@ class SPiece(Piece): def __init__(self): super().__init__() - self.square.fill(Color.green.value) + self.square.fill(Color.GREEN.value) self.elements = (None, None, None), (None, self.square, self.square), (self.square, self.square, None) self.vertical = False @@ -79,7 +79,7 @@ class SquarePiece(Piece): def __init__(self): super().__init__() - self.square.fill(Color.brown.value) + self.square.fill(Color.BROWN.value) self.elements = ((self.square, self.square), (self.square, self.square)) @@ -87,7 +87,7 @@ class IPiece(Piece): def __init__(self): super().__init__() - self.square.fill(Color.red.value) + self.square.fill(Color.RED.value) self.elements = (None, None, None, None), (None, None, None, None), (self.square, self.square, self.square, self.square), (None, None, None, None) self.vertical = False @@ -110,7 +110,7 @@ class LPiece(Piece): def __init__(self): super().__init__() - self.square.fill(Color.cyan.value) + self.square.fill(Color.CYAN.value) self.elements = (None, None, None), (self.square, self.square, self.square), (None, None, self.square) @@ -118,7 +118,7 @@ class JPiece(Piece): def __init__(self): super().__init__() - self.square.fill(Color.purple.value) + self.square.fill(Color.PURPLE.value) self.elements = (None, None, None), (self.square, self.square, self.square), (self.square, None, None) @@ -126,5 +126,5 @@ class TPiece(Piece): def __init__(self): super().__init__() - self.square.fill(Color.yellow.value) + self.square.fill(Color.YELLOW.value) self.elements = (None, None, None), (self.square, self.square, self.square), (None, self.square, None) |