edit super_mine

This commit is contained in:
eugenep 2021-03-31 15:15:20 +02:00
parent 58d78f83bc
commit 20dd4c9669

View File

@ -1,39 +1,34 @@
from abc import ABC, abstractmethod
from typing import Tuple
class SuperMine: class SuperMine:
@abstractmethod def __init__(self, column, row, state, danger_level, striking_distanse, active):
def __init__(self, position: Tuple[int, int], state, danger_level, striking_distanse, active): self.column = column
self.position = position self.row = row
self.state = state self.state = state
self.danger_level = danger_level self.danger_level = danger_level
self.striking_distanse = striking_distanse self.striking_distanse = striking_distanse
self.active = active self.active = active
@abstractmethod
def disarm(self): def disarm(self):
pass pass
class Bomb: class Bomb:
def __init__(self, position, state, danger_level, striking_distanse, active): def __init__(self, column, row, state, danger_level, striking_distanse, active):
super().__init__(position, state, danger_level, striking_distanse, active) super().__init__(column, row, state, danger_level, striking_distanse, active)
def disarm(self): def disarm(self):
pass pass
class Grenade: class Grenade:
def __init__(self, position, state, danger_level, striking_distanse, active): def __init__(self, column, row, state, danger_level, striking_distanse, active):
super().__init__(position, state, danger_level, striking_distanse, active) super().__init__(column, row, state, danger_level, striking_distanse, active)
def disarm(self): def disarm(self):
pass pass
class Mine: class Mine:
def __init__(self, position, state, danger_level, striking_distanse, active): def __init__(self, column, row, state, danger_level, striking_distanse, active):
super().__init__(position, state, danger_level, striking_distanse, active) super().__init__(column, row, state, danger_level, striking_distanse, active)
def disarm(self): def disarm(self):
pass pass