-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.py
executable file
·38 lines (33 loc) · 1.21 KB
/
models.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
33
34
35
36
37
38
#!/usr/bin/env python
from volume import Volume
for h in (2, 3, 4):
for x in range(6):
v = Volume(100)
for i in range(100):
for j in range(h):
v.clear((i, 50+j, 50))
for sb in range(-x, x+1):
v.clear((i, 51, 50+sb))
print("%d height tunnel with %d continuous side block=%s (Digs %d See %d)" % (h, x, v.score(), v.digs, v.getVisible()))
print()
for x in range(6):
v = Volume(100)
for i in range(100):
for j in range(h):
v.clear((i, 50+j, 50))
if i % 2 == 0:
for sb in range(-x, x+1):
v.clear((i, 51, 50+sb))
print("%d height tunnel with %d alternating side block=%s (Digs %d See %d)" % (h, x, v.score(), v.digs, v.getVisible()))
print()
for x in range(6):
v = Volume(100)
for i in range(100):
for j in range(h):
v.clear((i, 50+j, 50))
if i % 3 == 0:
for sb in range(-x, x+1):
v.clear((i, 51, 50+sb))
print("%d height tunnel with %d every third side block=%s (Digs %d See %d)" % (h, x, v.score(), v.digs, v.getVisible()))
print()
# EOF