code refactor
This commit is contained in:
parent
54bcc2036a
commit
d8b165844c
16
src/tile.py
16
src/tile.py
@ -6,13 +6,15 @@ from adm_mine import ADMMine
|
||||
|
||||
|
||||
class Tile:
|
||||
def __init__(self,
|
||||
number: int,
|
||||
weight: int,
|
||||
visibility: str,
|
||||
stability: str,
|
||||
ground: str,
|
||||
mine: Union[None, APMine, ATMine, ADMMine] = None):
|
||||
def __init__(
|
||||
self,
|
||||
number: int,
|
||||
weight: int,
|
||||
visibility: str,
|
||||
stability: str,
|
||||
ground: str,
|
||||
mine: Union[None, APMine, ATMine, ADMMine] = None
|
||||
):
|
||||
self.number = number
|
||||
self.mine = mine
|
||||
self.weight = weight
|
||||
|
Loading…
Reference in New Issue
Block a user