-
Notifications
You must be signed in to change notification settings - Fork 32
/
pubg-indices.py
101 lines (88 loc) · 7.32 KB
/
pubg-indices.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
ubulk_indices_erangel = [
(0, 0, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (0, 1, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (0, 2, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (0, 3, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (1, 0, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (1, 1, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (1, 2, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (1, 3, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (2, 0, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (2, 1, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (2, 2, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (2, 3, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (3, 0, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (3, 1, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (3, 2, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (3, 3, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
]
tile_sequence_erangel = [
[ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
, [ (3, 3), (2, 3), (1, 3), (0, 3), (3, 2), (2, 2), (1, 2), (0, 2), (3, 1), (2, 1), (1, 1), (0, 1), (3, 0), (2, 0), (1, 0), (0, 0)]
]
ubulk_indices_miramar = [
(0, 0, [ 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 31, 32, 39 ])
, (0, 1, [ 0, 3, 7, 11, 12, 14, 15, 28, 29, 32, 33, 35, 64, 65, 66, 70 ])
, (0, 2, [ 0, 1, 2, 3, 4, 5, 9, 10, 11, 14, 15, 20, 22, 23, 38, 49 ])
, (0, 3, [ 0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 14, 15, 37, 41, 57 ])
, (1, 0, [ 0, 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 ])
, (1, 1, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 26, 32 ])
, (1, 2, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (1, 3, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (2, 0, [ 0, 1, 5, 8, 9, 10, 11, 12, 13, 14, 15, 20, 24, 25, 28, 34 ])
, (2, 1, [ 0, 1, 7, 8, 9, 11, 12, 13, 14, 15, 25, 34, 35, 36, 37, 66 ])
, (2, 2, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (2, 3, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (3, 0, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (3, 1, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ])
, (3, 2, [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 31 ])
, (3, 3, [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 41 ])
]
tile_sequence_miramar = [
[ (2, 2), (3, 2), (0, 3), (0, 0), (2, 3), (1, 0), (2, 0), (0, 1), (2, 1), (3, 1), (1, 1), (1, 2), (0, 2), (3, 0), (1, 3), (3, 3)]
, [ (3, 0), (3, 2), (3, 3), (0, 1), (1, 1), (2, 1), (0, 2), (1, 2), (2, 2), (0, 3), (1, 3), (2, 3), (0, 0), (1, 0), (2, 0), (3, 1)]
, [ (0, 0), (1, 0), (2, 2), (3, 2), (0, 3), (1, 3), (3, 0), (0, 1), (1, 1), (0, 2), (1, 2), (2, 0), (2, 1), (3, 1), (2, 3), (3, 3)]
, [ (0, 0), (1, 0), (2, 2), (3, 2), (0, 3), (1, 3), (2, 3), (3, 3), (0, 1), (1, 1), (2, 1), (0, 2), (1, 2), (2, 0), (3, 0), (3, 1)]
, [ (0, 0), (1, 0), (2, 2), (3, 2), (2, 3), (3, 3), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2), (0, 3), (1, 3)]
, [ (0, 0), (1, 0), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2), (3, 2), (0, 3), (1, 3), (3, 3), (2, 2), (2, 3)]
, [ (0, 0), (1, 0), (2, 2), (3, 2), (0, 3), (1, 3), (2, 3), (3, 3), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2)]
, [ (0, 0), (1, 0), (2, 2), (3, 2), (0, 3), (1, 3), (2, 3), (3, 3), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2)]
, [ (0, 0), (1, 0), (1, 3), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2), (2, 2), (3, 2), (0, 3), (2, 3), (3, 3)]
, [ (0, 0), (1, 0), (3, 3), (2, 0), (3, 0), (1, 1), (2, 1), (3, 1), (0, 2), (0, 1), (1, 2), (2, 2), (3, 2), (0, 3), (1, 3), (2, 3)]
, [ (0, 0), (1, 0), (2, 2), (3, 2), (0, 3), (1, 3), (2, 3), (3, 3), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2)]
, [ (0, 0), (1, 0), (2, 2), (3, 2), (0, 3), (1, 3), (2, 3), (3, 3), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2)]
, [ (0, 0), (1, 0), (2, 2), (3, 2), (0, 3), (1, 3), (2, 3), (3, 3), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2)]
, [ (0, 0), (1, 0), (2, 2), (3, 2), (0, 3), (1, 3), (2, 3), (3, 3), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2)]
, [ (0, 0), (1, 0), (2, 2), (3, 2), (1, 3), (2, 3), (3, 3), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2), (0, 3)]
, [ (1, 0), (2, 2), (3, 2), (0, 3), (1, 3), (2, 3), (3, 3), (2, 0), (3, 0), (0, 1), (1, 1), (2, 1), (3, 1), (0, 2), (1, 2), (0, 0)]
]
# for ubulk_index, indices in enumerate(ubulk_indices_miramar):
# sequence = tile_sequence_miramar[ubulk_index]
# sorted_indices = [None] * 16
# for sequence_index, tile_index in enumerate(indices[2]):
# tile_pos = sequence[sequence_index]
# sort_index = tile_pos[1] * 4 + tile_pos[0]
# sorted_indices[sort_index] = tile_index
# print(', (', indices[0], indices[1], sorted_indices, ')')
for ubulk_index, indices in enumerate(ubulk_indices_erangel):
sequence = tile_sequence_erangel[ubulk_index]
sorted_indices = [None] * 16
for sequence_index, tile_index in enumerate(indices[2]):
tile_pos = sequence[sequence_index]
sort_index = tile_pos[1] * 4 + tile_pos[0]
sorted_indices[sort_index] = tile_index
print(', (', indices[0], indices[1], sorted_indices, ')')