Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- combo = [(660, (32, 32, 31), (9, 8, 8)), (660, (32, 32, 31), (9, 8, 8)), (660, (32, 32, 31), (9, 8, 8)), (636, (32, 32, 30), (9, 8, 8)), (636, (32, 32, 30), (9, 8, 8)), (636, (32, 32, 30), (9, 8, 8)), (636, (32, 31, 31), (9, 8, 8)), (636, (32, 31, 31), (9, 8, 8)), (636, (32, 31, 31), (9, 8, 8))]
- table1 = ((12,27),(13,27),(14,27),(9,27),(8,32),(12,27),(8,27),(13,26))
- table2 = ((12,27),(14,27),(9,32) ,(10,28),(8,31),(10,32),(9,28),(9,30))
- table3 = ((26,30),(26,26),(26,31))
- # kolejnosci wedlug elementow z combo
- for j, a, b in combo:
- for x, y in table1:
- if (x in a or y in a) and (x in b or y in b):
- print j, a, b, 'table1', x, y
- for x, y in table2:
- if (x in a or y in a) and (x in b or y in b):
- print j, a, b, 'table2', x, y
- for x, y in table3:
- if (x in a or y in a) and (x in b or y in b):
- print j, a, b, 'table3', x, y
- print '---'
- # kolejnosci wedlug tablic
- for x, y in table1:
- for j, a, b in combo:
- if (x in a or y in a) and (x in b or y in b):
- print 'table1', j, a, b, x, y
- for x, y in table2:
- for j, a, b in combo:
- if (x in a or y in a) and (x in b or y in b):
- print 'table2', j, a, b, x, y
- for x, y in table3:
- for j, a, b in combo:
- if (x in a or y in a) and (x in b or y in b):
- print 'table3', j, a, b, x, y
- # 660 (32, 32, 31) (9, 8, 8) table1 8 32
- # 660 (32, 32, 31) (9, 8, 8) table2 9 32
- # 660 (32, 32, 31) (9, 8, 8) table2 8 31
- # 660 (32, 32, 31) (9, 8, 8) table1 8 32
- # 660 (32, 32, 31) (9, 8, 8) table2 9 32
- # 660 (32, 32, 31) (9, 8, 8) table2 8 31
- # 660 (32, 32, 31) (9, 8, 8) table1 8 32
- # 660 (32, 32, 31) (9, 8, 8) table2 9 32
- # 660 (32, 32, 31) (9, 8, 8) table2 8 31
- # 636 (32, 32, 30) (9, 8, 8) table1 8 32
- # 636 (32, 32, 30) (9, 8, 8) table2 9 32
- # 636 (32, 32, 30) (9, 8, 8) table2 9 30
- # 636 (32, 32, 30) (9, 8, 8) table1 8 32
- # 636 (32, 32, 30) (9, 8, 8) table2 9 32
- # 636 (32, 32, 30) (9, 8, 8) table2 9 30
- # 636 (32, 32, 30) (9, 8, 8) table1 8 32
- # 636 (32, 32, 30) (9, 8, 8) table2 9 32
- # 636 (32, 32, 30) (9, 8, 8) table2 9 30
- # 636 (32, 31, 31) (9, 8, 8) table1 8 32
- # 636 (32, 31, 31) (9, 8, 8) table2 9 32
- # 636 (32, 31, 31) (9, 8, 8) table2 8 31
- # 636 (32, 31, 31) (9, 8, 8) table1 8 32
- # 636 (32, 31, 31) (9, 8, 8) table2 9 32
- # 636 (32, 31, 31) (9, 8, 8) table2 8 31
- # 636 (32, 31, 31) (9, 8, 8) table1 8 32
- # 636 (32, 31, 31) (9, 8, 8) table2 9 32
- # 636 (32, 31, 31) (9, 8, 8) table2 8 31
- # ---
- # table1 660 (32, 32, 31) (9, 8, 8) 8 32
- # table1 660 (32, 32, 31) (9, 8, 8) 8 32
- # table1 660 (32, 32, 31) (9, 8, 8) 8 32
- # table1 636 (32, 32, 30) (9, 8, 8) 8 32
- # table1 636 (32, 32, 30) (9, 8, 8) 8 32
- # table1 636 (32, 32, 30) (9, 8, 8) 8 32
- # table1 636 (32, 31, 31) (9, 8, 8) 8 32
- # table1 636 (32, 31, 31) (9, 8, 8) 8 32
- # table1 636 (32, 31, 31) (9, 8, 8) 8 32
- # table2 660 (32, 32, 31) (9, 8, 8) 9 32
- # table2 660 (32, 32, 31) (9, 8, 8) 9 32
- # table2 660 (32, 32, 31) (9, 8, 8) 9 32
- # table2 636 (32, 32, 30) (9, 8, 8) 9 32
- # table2 636 (32, 32, 30) (9, 8, 8) 9 32
- # table2 636 (32, 32, 30) (9, 8, 8) 9 32
- # table2 636 (32, 31, 31) (9, 8, 8) 9 32
- # table2 636 (32, 31, 31) (9, 8, 8) 9 32
- # table2 636 (32, 31, 31) (9, 8, 8) 9 32
- # table2 660 (32, 32, 31) (9, 8, 8) 8 31
- # table2 660 (32, 32, 31) (9, 8, 8) 8 31
- # table2 660 (32, 32, 31) (9, 8, 8) 8 31
- # table2 636 (32, 31, 31) (9, 8, 8) 8 31
- # table2 636 (32, 31, 31) (9, 8, 8) 8 31
- # table2 636 (32, 31, 31) (9, 8, 8) 8 31
- # table2 636 (32, 32, 30) (9, 8, 8) 9 30
- # table2 636 (32, 32, 30) (9, 8, 8) 9 30
- # table2 636 (32, 32, 30) (9, 8, 8) 9 30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement