Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def testAllPossibilities():
- cowboysRaw = getCowboys(buffer)
- perm = permutations(range(0, len(cowboysRaw)))
- bt = 999999999999999999999999
- ba = []
- for i in list(perm):
- newCowboys = []
- for j in i : newCowboys.append(cowboysRaw[j])
- ct = traverser(1, newCowboys, getProperties(buffer)[1], getProperties(buffer)[0], 0)
- if ct < bt :
- bt = ct
- ba = []
- for j in i: ba.append(cowboysRaw[j])
- print(bt)
- print(ba)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement