forked from joshuachen6/KrishLib
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwalls.py
More file actions
37 lines (36 loc) · 1.51 KB
/
Copy pathwalls.py
File metadata and controls
37 lines (36 loc) · 1.51 KB
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
33
34
35
36
37
wallArr: list[int] = [
0b0000_1111111111111111111111111111, # row 0
0b0000_1000000000000110000000000001, # row 1
0b0000_1011110111110110111110111101, # row 2
0b0000_1011110111110110111110111101, # row 3
0b0000_1011110111110110111110111101, # row 4
0b0000_1000000000000000000000000001, # row 5
0b0000_1011110110111111110110111101, # row 6
0b0000_1011110110111111110110111101, # row 7
0b0000_1000000110000110000110000001, # row 8
0b0000_1111110111110110111110111111, # row 9
0b0000_1111110111110110111110111111, # row 10
0b0000_1111110110000000000110111111, # row 11
0b0000_1111110110111111110110111111, # row 12
0b0000_1111110110111111110110111111, # row 13
0b0000_1111110000111111110000111111, # row 14
0b0000_1111110110111111110110111111, # row 15
0b0000_1111110110111111110110111111, # row 16
0b0000_1111110110000000000110111111, # row 17
0b0000_1111110110111111110110111111, # row 18
0b0000_1111110110111111110110111111, # row 19
0b0000_1000000000000110000000000001, # row 20
0b0000_1011110111110110111110111101, # row 21
0b0000_1011110111110110111110111101, # row 22
0b0000_1000110000000000000000110001, # row 23
0b0000_1110110110111111110110110111, # row 24
0b0000_1110110110111111110110110111, # row 25
0b0000_1000000110000110000110000001, # row 26
0b0000_1011111111110110111111111101, # row 27
0b0000_1011111111110110111111111101, # row 28
0b0000_1000000000000000000000000001, # row 29
0b0000_1111111111111111111111111111 # row 30
]
def get(row, col):
#print(row,col)
return bool(wallArr[row] & 1<<(27-col))