Informatik10/maedn/House.py
Martin Putzlocher 55d804f3bc Erste Funktionalitäten, Docstrings auf Sphinx-Format geändert
Zur Änderung der Docstrings pyment eingesetzt.
z.B.
```
pyment -w Field.py
```
2022-04-19 09:49:45 +02:00

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)