-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScalar.py
21 lines (17 loc) · 1.05 KB
/
Scalar.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Fish
class Scalar(Fish.Fish):
def __init__(self, name, age, x, y, directionH, directionV):
super().__init__(name, age, x, y, directionH, directionV)
self.width = 8
self.height = 5
def get_animal(self):
if self.directionH==0:
animal = [[' ', ' ', '*', '*', '*', '*', '*', '*'], [' ','*','*','*',' ',' ',' ',' '], ['*','*','*','*', '*', '*', ' ',' '], [' ','*','*','*',' ',' ',' ',' ',], [' ', ' ', '*', '*', '*', '*', '*','*']]
if self.directionH == 1:
animal = [['*', '*', '*', '*', '*', '*', ' ', ' '], [' ',' ',' ',' ','*','*','*',' '], [' ',' ','*','*','*','*','*','*'], [' ',' ',' ',' ','*', '*', '*',' '], ['*', '*', '*', '*', '*','*',' ',' ',]]
return animal
def get_blank_animal(self):
animal = [[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ']]
return animal