remove unnecessary argument

This commit is contained in:
matixezor 2021-04-26 16:57:35 +02:00
parent 4f6b562d9b
commit 176f14b0a3

View File

@ -12,7 +12,7 @@ class TilesFactory:
module = import_module(f'{img.mine_type.lower()}_mine')
return Tile(number, 1, getattr(module, f'{img.mine_type}Mine')())
else:
return Tile(number, 1, None) if 'grass' in img.name else Tile(number, 20, None)
return Tile(number, 1) if 'grass' in img.name else Tile(number, 20)
def get_tiles_list(self) -> List[Tile]:
return [self.create_tile(i) for i in range(13)]