10 lines
267 B
Python
10 lines
267 B
Python
from entity.Piece import Piece
|
|
from entity.Entity import Entity
|
|
|
|
class Stack(Entity):
|
|
|
|
def __init__(self, color: str, border_color: str):
|
|
super().__init__([], color, border_color)
|
|
|
|
def add_piece(self, piece: Piece):
|
|
self.points += piece.points |