Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fct_euristica_h2(self, nod_info):
- x=nod_info[1]+nod_info[2]
- mal=nod_info[0]
- if mal=="vest":
- mal=True
- else:
- mal=False
- if x!=0:
- if mal is False:
- return 2*((x-2)/(Nod.NR_LOCURI_BARCA-1)+1)
- return 2*((x-1)/(Nod.NR_LOCURI_BARCA-1)+2)
- return 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement