Martin Putzlocher
55d804f3bc
Zur Änderung der Docstrings pyment eingesetzt. z.B. ``` pyment -w Field.py ```
36 lines
615 B
Python
36 lines
615 B
Python
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)
|