-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.py
32 lines (27 loc) · 1.7 KB
/
data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import numpy as np
# Creating a full heart
heart = -np.ones((15, 15))
heart[3] = np.array([-1,-1,-1, 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1])
heart[4] = np.array([-1,-1,1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, -1, -1])
heart[5] = np.array([-1,1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -1])
heart[6] = np.array([-1,1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -1])
heart[7] = np.array([-1,1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -1])
heart[8] = np.array([-1,-1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -1, -1])
heart[9] = np.array([-1,-1,-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1])
heart[10] = np.array([-1,-1,-1, -1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, -1])
heart[11] = np.array([-1,-1,-1, -1, -1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1])
heart[12] = np.array([-1,-1,-1, -1, -1, -1, 1, 1, 1, -1, -1, -1, -1, -1, -1])
heart[13] = np.array([-1,-1,-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1])
# Creating a broken heart
broken = -np.ones((15, 15))
broken[3] = np.array([-1,-1,-1, 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1])
broken[4] = np.array([-1,-1,1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, -1, -1])
broken[5] = np.array([-1,1,1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, 1, -1])
broken[6] = np.array([-1,1,1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1])
broken[7] = np.array([-1,1,1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, 1, -1])
broken[8] = np.array([-1,-1,1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, -1, -1])
broken[9] = np.array([-1,-1,-1, 1, 1, 1, 1, -1, 1, 1, 1, 1, -1, -1, -1])
broken[10] = np.array([-1,-1,-1, -1, 1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1])
broken[11] = np.array([-1,-1,-1, -1, -1, 1, 1, -1, 1, 1, -1, -1, -1, -1, -1])
broken[12] = np.array([-1,-1,-1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1])
broken[13] = np.array([-1,-1,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1])