Informatik10/maedn/House.py

36 lines
615 B
Python
Raw Normal View History

from Field import *
class House():
""":version: 0.1
:author: Martin Putzlocher
"""
""" ATTRIBUTES
is_full (private)
list_of_fields (private)
"""
def __init__(self, board:Board=None, color:str="black"):
self.board = board
self.color = color
self._list_of_housefields = list()
if board is None:
pass
else:
self.init_house()
def set_board(self, board:Board=None):
self.board = board
return True
def init_house(self):
for i in range(4):
f = Field(board=self.board)