Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. string = x[i].split('*')
  2. if len(string) < 2:
  3. string = [0, 0]
  4. x[i + '_L'] = int(string[0])
  5. x[i + '_B'] = int(string[1])
  6.  
  7. for j, k in enumerate(possible_locs):
  8. if not collide(curr, k[0], k[1], plot):
  9. house[i] = [k, p * 100]
  10. fill(curr, k[0], k[1], plot, p * 100)
  11. possible_locs.append([k[0], curr[1] + k[1]])
  12. possible_locs.append([k[0] + curr[0], k[1]])
  13. possible_locs.pop(j)
  14. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement