From 20dd4c9669284110ca079dda6c1d27ea0e7416cd Mon Sep 17 00:00:00 2001 From: eugenep Date: Wed, 31 Mar 2021 15:15:20 +0200 Subject: [PATCH] edit super_mine --- super_mine.py | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/super_mine.py b/super_mine.py index 810ccb5..f8b0755 100644 --- a/super_mine.py +++ b/super_mine.py @@ -1,39 +1,34 @@ -from abc import ABC, abstractmethod - -from typing import Tuple - class SuperMine: - @abstractmethod - def __init__(self, position: Tuple[int, int], state, danger_level, striking_distanse, active): - self.position = position + def __init__(self, column, row, state, danger_level, striking_distanse, active): + self.column = column + self.row = row self.state = state self.danger_level = danger_level self.striking_distanse = striking_distanse self.active = active - - @abstractmethod + def disarm(self): pass class Bomb: - def __init__(self, position, state, danger_level, striking_distanse, active): - super().__init__(position, state, danger_level, striking_distanse, active) + def __init__(self, column, row, state, danger_level, striking_distanse, active): + super().__init__(column, row, state, danger_level, striking_distanse, active) def disarm(self): pass class Grenade: - def __init__(self, position, state, danger_level, striking_distanse, active): - super().__init__(position, state, danger_level, striking_distanse, active) + def __init__(self, column, row, state, danger_level, striking_distanse, active): + super().__init__(column, row, state, danger_level, striking_distanse, active) def disarm(self): pass class Mine: - def __init__(self, position, state, danger_level, striking_distanse, active): - super().__init__(position, state, danger_level, striking_distanse, active) + def __init__(self, column, row, state, danger_level, striking_distanse, active): + super().__init__(column, row, state, danger_level, striking_distanse, active) def disarm(self): pass