code refactor

This commit is contained in:
matixezor 2021-05-18 00:10:37 +02:00
parent 54bcc2036a
commit d8b165844c

View File

@ -6,13 +6,15 @@ from adm_mine import ADMMine
class Tile: class Tile:
def __init__(self, def __init__(
self,
number: int, number: int,
weight: int, weight: int,
visibility: str, visibility: str,
stability: str, stability: str,
ground: str, ground: str,
mine: Union[None, APMine, ATMine, ADMMine] = None): mine: Union[None, APMine, ATMine, ADMMine] = None
):
self.number = number self.number = number
self.mine = mine self.mine = mine
self.weight = weight self.weight = weight