Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- class Figures:
- materials = "wood"
- def __init__(self):
- self.x = random.randint(1, 100)
- self.y = random.randint(1,100)
- def move(self):
- self.x += 1
- self.y += 1
- class Horse(Figures):
- type = "horse"
- def __init__(self):
- super().__init__()
- def move(self):
- self.x += 1
- self.y += 1
- class Pawn(Figures):
- type = "pawn"
- def __init__(self):
- super().__init__()
- class Rook(Figures):
- type = "rook"
- def __init__(self):
- super().__init__()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement