feat: implement stack

This commit is contained in:
2021-06-08 16:09:21 -04:00
parent 18c488ac48
commit b42a2c377b
6 changed files with 33 additions and 6 deletions

10
entity/Stack.py Normal file
View File

@@ -0,0 +1,10 @@
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