45 lines
1.1 KiB
Python
45 lines
1.1 KiB
Python
|
#!/usr/bin/env python3
|
||
|
import pacmap
|
||
|
|
||
|
maps = [
|
||
|
[
|
||
|
[4, 1, 1, 1, 3, 1, 1, 4],
|
||
|
[1, 0, 0, 0, 0, 0, 0, 1],
|
||
|
[1, 0, 1, 1, 0, 1, 0, 1],
|
||
|
[3, 0, 1, 0, 0, 1, 0, 3],
|
||
|
[1, 0, 0, 0, 1, 0, 0, 1],
|
||
|
[1, 1, 1, 0, 0, 0, 1, 1],
|
||
|
[4, 4, 1, 1, 3, 1, 1, 4],
|
||
|
],
|
||
|
[
|
||
|
[4, 1, 1, 1, 3, 1, 1, 4],
|
||
|
[1, 1, 1, 1, 0, 1, 1, 1],
|
||
|
[1, 1, 1, 1, 0, 1, 1, 1],
|
||
|
[1, 1, 1, 1, 0, 1, 1, 1],
|
||
|
[1, 1, 1, 1, 0, 1, 1, 1],
|
||
|
[1, 1, 1, 1, 0, 1, 1, 1],
|
||
|
[4, 1, 1, 1, 3, 1, 1, 4],
|
||
|
],
|
||
|
[
|
||
|
[4, 1, 1, 1, 3, 1, 1, 4],
|
||
|
[1, 1, 1, 1, 0, 1, 1, 1],
|
||
|
[1, 1, 1, 1, 0, 1, 1, 1],
|
||
|
[1, 0, 0, 1, 0, 1, 1, 1],
|
||
|
[1, 0, 0, 1, 0, 1, 1, 1],
|
||
|
[1, 1, 1, 1, 0, 1, 1, 1],
|
||
|
[4, 1, 1, 1, 3, 1, 1, 4],
|
||
|
],
|
||
|
[
|
||
|
[4, 1, 1, 1, 3, 1, 1, 4],
|
||
|
[1, 1, 1, 1, 0, 1, 1, 1],
|
||
|
[1, 1, 1, 1, 0, 0, 0, 1],
|
||
|
[1, 1, 1, 1, 1, 1, 0, 1],
|
||
|
[3, 0, 0, 0, 0, 1, 0, 3],
|
||
|
[1, 1, 1, 1, 0, 1, 1, 1],
|
||
|
[4, 1, 1, 1, 3, 1, 1, 4],
|
||
|
]
|
||
|
]
|
||
|
|
||
|
for pac_map in maps:
|
||
|
is_connex = pacmap.connex(pac_map)
|
||
|
print(is_connex)
|